Skip to content

Commit 481e639

Browse files
committed
No need to print out env vars in the Dockerfile.
1 parent bcd1d8e commit 481e639

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.github/workflows/build_and_push_nonproduction_images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
echo "FRONTEND_SERVICE_PORT: ${FRONTEND_SERVICE_PORT}"
5555
5656
57-
- name: Set image tag
57+
- name: Set Image Tag
5858
id: vars
5959
run: |
6060
BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF##*/}}
@@ -105,7 +105,7 @@ jobs:
105105
username: ${{ github.actor }}
106106
password: ${{ secrets.GITHUB_TOKEN }}
107107

108-
- name: Set image tag
108+
- name: Set Image Tag
109109
id: vars
110110
run: |
111111
BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF##*/}}

Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ ENV NEXT_PUBLIC_BACKEND_SERVICE_HOST=$NEXT_PUBLIC_BACKEND_SERVICE_HOST
3737
ENV NEXT_PUBLIC_BACKEND_SERVICE_PORT=$NEXT_PUBLIC_BACKEND_SERVICE_PORT
3838
ENV NEXT_PUBLIC_BACKEND_API_VERSION=$NEXT_PUBLIC_BACKEND_API_VERSION
3939

40-
# Optional: Print the values to verify they are set correctly
41-
RUN echo "Building with the following environment variables:\n" && \
42-
echo "NEXT_PUBLIC_BACKEND_SERVICE_PROTOCOL: ${NEXT_PUBLIC_BACKEND_SERVICE_PROTOCOL}\n" && \
43-
echo "NEXT_PUBLIC_BACKEND_SERVICE_HOST: ${NEXT_PUBLIC_BACKEND_SERVICE_HOST}\n" && \
44-
echo "NEXT_PUBLIC_BACKEND_SERVICE_PORT: ${NEXT_PUBLIC_BACKEND_SERVICE_PORT}\n" && \
45-
echo "NEXT_PUBLIC_BACKEND_API_VERSION: ${NEXT_PUBLIC_BACKEND_API_VERSION}\n" && \
46-
echo "FRONTEND_SERVICE_INTERFACE: ${FRONTEND_SERVICE_INTERFACE}\n" && \
47-
echo "FRONTEND_SERVICE_PORT: ${FRONTEND_SERVICE_PORT}\n"
48-
4940
# Build the Next.js application
5041
# Note: Use `next build` to build the application for production
5142
RUN npm run build

0 commit comments

Comments
 (0)