File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 41
41
tags : ${{ steps.meta.outputs.tags }}
42
42
labels : ${{ steps.meta.outputs.labels }}
43
43
build-args : |
44
- VERSION =${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
44
+ RELEASE_VERSION =${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
Original file line number Diff line number Diff line change 35
35
id : docker_build
36
36
uses : docker/build-push-action@v4
37
37
with :
38
- push : false
38
+ push : true
39
39
tags : ${{ steps.meta.outputs.tags }}
40
40
labels : ${{ steps.meta.outputs.labels }}
41
41
build-args : |
42
- VERSION =${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
42
+ RELEASE_VERSION =${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ FROM python:3.11
17
17
LABEL org.opencontainers.image.source https://github.com/TheSpaceDevs/spaceflightnewsapi
18
18
19
19
ARG RELEASE_VERSION
20
- ENV VERSION =$RELEASE_VERSION
20
+ ENV SNAPI_VERSION =$RELEASE_VERSION
21
21
22
22
WORKDIR /code/
23
23
COPY --from=builder /code /code
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ services:
15
15
ports :
16
16
- " 8000:8000"
17
17
environment :
18
- - VERSION =${VERSION }
18
+ - SNAPI_VERSION =${SNAPI_VERSION }
19
19
- DEBUG=${DEBUG}
20
20
- SECRET_KEY=${SECRET_KEY}
21
21
- DB_NAME=${DB_NAME}
@@ -62,7 +62,7 @@ services:
62
62
- ./snapy:/code/snapy
63
63
- ./manage.py:/code/manage.py
64
64
environment :
65
- - VERSION =${VERSION }
65
+ - SNAPI_VERSION =${SNAPI_VERSION }
66
66
- DB_NAME=${DB_NAME}
67
67
- DB_USER=${DB_USER}
68
68
- DB_HOST=${DB_HOST}
@@ -84,7 +84,7 @@ services:
84
84
- ./snapy:/code/snapy
85
85
- ./manage.py:/code/manage.py
86
86
environment :
87
- - VERSION =${VERSION }
87
+ - SNAPI_VERSION =${SNAPI_VERSION }
88
88
- DB_NAME=${DB_NAME}
89
89
- DB_USER=${DB_USER}
90
90
- DB_HOST=${DB_HOST}
Original file line number Diff line number Diff line change 17
17
import sentry_sdk
18
18
from sentry_sdk .integrations .django import DjangoIntegration
19
19
20
- VERSION = os .getenv ("VERSION " )
20
+ VERSION = os .getenv ("SNAPI_VERSION " )
21
21
22
22
# Build paths inside the project like this: BASE_DIR / 'subdir'.
23
23
BASE_DIR = Path (__file__ ).resolve ().parent .parent
You can’t perform that action at this time.
0 commit comments