Skip to content

Commit 093a366

Browse files
chore: change AZURE_STORAGE_HOSTNAME from secret to var (#1619)
Co-authored-by: João Parreira <[email protected]>
1 parent c0cb703 commit 093a366

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/deploy_backend_frontend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
DOCKERFILE: ./frontend/Dockerfile
2727
REPOSITORY: frontend
2828
ROOT: ./frontend
29+
BUILD_ARGS: |
30+
"ASH=${{ vars.AZURE_STORAGE_HOSTNAME }}"
2931
secrets: inherit
3032

3133
deploy_dev:

.github/workflows/tests_backend_frontend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
- name: Build
142142
run: npm run build
143143
env:
144-
AZURE_STORAGE_HOSTNAME: ${{ secrets.AZURE_STORAGE_HOSTNAME }}
144+
AZURE_STORAGE_HOSTNAME: ${{ vars.AZURE_STORAGE_HOSTNAME }}
145145
working-directory: frontend
146146

147147
test_frontend:
@@ -176,5 +176,5 @@ jobs:
176176
- name: Test
177177
run: npm run jest -- --coverage
178178
env:
179-
AZURE_STORAGE_HOSTNAME: ${{ secrets.AZURE_STORAGE_HOSTNAME }}
179+
AZURE_STORAGE_HOSTNAME: ${{ vars.AZURE_STORAGE_HOSTNAME }}
180180
working-directory: frontend

frontend/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ COPY . .
1313

1414
# Rebuild the source code only when needed
1515
FROM node:$TAG AS builder
16+
ARG ASH
17+
ENV AZURE_STORAGE_HOSTNAME $ASH
1618
ENV NODE_ENV=production
1719
WORKDIR /app
1820
COPY --from=development /app/node_modules ./node_modules

0 commit comments

Comments
 (0)