Skip to content

Commit 45b4293

Browse files
committed
Print specific args/vars out and move later in the build steps
1 parent e4944bc commit 45b4293

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/build_and_push_nonproduction_images.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,25 @@ jobs:
3535
with:
3636
install: true
3737

38-
- name: Debug Environment Variables
39-
if: ${{ inputs.enable_env_var_debugging == true }} # Only run when debugging is enabled
40-
run: |
41-
echo "=== ALL BUILD ARGS ===" && env | sort
42-
4338
- name: Docker login
4439
uses: docker/login-action@v2
4540
with:
4641
registry: ${{ env.REGISTRY }}
4742
username: ${{ github.actor }}
4843
password: ${{ secrets.GITHUB_TOKEN }}
4944

45+
- name: Debug Environment Variables
46+
if: ${{ inputs.enable_env_var_debugging == true }} # Only run when debugging is enabled
47+
run: |
48+
echo "Building with the following environment variables:" && \
49+
echo "NEXT_PUBLIC_BACKEND_SERVICE_PROTOCOL: ${NEXT_PUBLIC_BACKEND_SERVICE_PROTOCOL}" && \
50+
echo "NEXT_PUBLIC_BACKEND_SERVICE_HOST: ${NEXT_PUBLIC_BACKEND_SERVICE_HOST}" && \
51+
echo "NEXT_PUBLIC_BACKEND_SERVICE_PORT: ${NEXT_PUBLIC_BACKEND_SERVICE_PORT}" && \
52+
echo "NEXT_PUBLIC_BACKEND_API_VERSION: ${NEXT_PUBLIC_BACKEND_API_VERSION}" && \
53+
echo "FRONTEND_SERVICE_INTERFACE: ${FRONTEND_SERVICE_INTERFACE}" && \
54+
echo "FRONTEND_SERVICE_PORT: ${FRONTEND_SERVICE_PORT}"
55+
56+
5057
- name: Set image tag
5158
id: vars
5259
run: |

0 commit comments

Comments
 (0)