File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,29 @@ jobs:
29
29
with :
30
30
creds : ${{ secrets.AZURE_CREDENTIALS }}
31
31
32
+ - name : Unlock STAGE secrets
33
+
34
+ env :
35
+ GIT_CRYPT_KEY : ${{ secrets.GIT_CRYPT_KEY_STAGE }}
36
+
37
+ - name : Load stage secrets to environment
38
+ run : |
39
+ set -a
40
+ source .stage.env
41
+ set +a
42
+
32
43
- name : Build the docker image
33
44
run : |-
34
45
docker build \
35
46
--target production -t timetracker_ui \
36
- --build-arg API_URL="${{secrets.API_URL_STAGE}}" \
37
- --build-arg AUTHORITY="${{secrets.AUTHORITY}}" \
38
- --build-arg CLIENT_ID="${{secrets.CLIENT_ID_STAGE}}" \
39
- --build-arg CLIENT_URL="${{ secrets.CLIENT_URL_STAGE}}" \
40
- --build-arg SCOPES="${{secrets.SCOPES}}" \
41
- --build-arg AZURE_APP_CONFIGURATION_CONNECTION_STRING="${{secrets.AZURE_APP_CONFIGURATION_CONNECTION_STRING}}" \
47
+ --build-arg API_URL="$API_URL" \
48
+ --build-arg AUTHORITY="$AUTHORITY" \
49
+ --build-arg CLIENT_ID="$CLIENT_ID" \
50
+ --build-arg CLIENT_URL="$CLIENT_URL" \
51
+ --build-arg SCOPES="$SCOPES" \
52
+ --build-arg STACK_EXCHANGE_ID="$STACK_EXCHANGE_ID" \
53
+ --build-arg STACK_EXCHANGE_ACCESS_TOKEN="$STACK_EXCHANGE_ACCESS_TOKEN" \
54
+ --build-arg AZURE_APP_CONFIGURATION_CONNECTION_STRING="$AZURE_APP_CONFIGURATION_CONNECTION_STRING" \
42
55
.
43
56
44
57
- name : Publish docker image to stage azure container registry
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ RUN useradd -ms /bin/bash ${USERNAME}
36
36
37
37
COPY nginx.conf /etc/nginx/conf.d/default.conf
38
38
COPY --from=building /home/timetracker/time-tracker-ui/dist/time-tracker /usr/share/nginx/html
39
- COPY .env /usr/share/nginx/html
40
39
RUN chown -R ${USERNAME}:${USERNAME} /var/cache/nginx && \
41
40
chown -R ${USERNAME}:${USERNAME} /var/log/nginx && \
42
41
chown -R ${USERNAME}:${USERNAME} /etc/nginx/conf.d
You can’t perform that action at this time.
0 commit comments