From 97b06b48749cab43dc710736c3623c6e780adc51 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sat, 4 Nov 2023 21:49:38 +0000 Subject: More shit --- .github/workflows/docker-frontend.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/docker-frontend.yml b/.github/workflows/docker-frontend.yml index 2a0bbd6..3534d6e 100644 --- a/.github/workflows/docker-frontend.yml +++ b/.github/workflows/docker-frontend.yml @@ -23,10 +23,13 @@ jobs: - name: Build & push frontend Docker image env: + FRONTEND_URL: ${{ secrets.FRONTEND_URL }} + BACKEND_HTTP_URL: ${{ secrets.BACKEND_HTTP_URL }} + BACKEND_WS_URL: ${{ secrets.BACKEND_WS_URL }} ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: tetris IMAGE_TAG: frontend run: | cd frontend - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + docker build --build-arg FRONTEND_URL=$FRONTEND_URL --build-arg BACKEND_HTTP_URL=$BACKEND_HTTP_URL --build-arg BACKEND_WS_URL=$BACKEND_WS_URL -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -- cgit v1.2.3-70-g09d2