aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-11-04 21:49:38 +0000
committerLeonardo Bishop <me@leonardobishop.com>2023-11-04 21:49:38 +0000
commit97b06b48749cab43dc710736c3623c6e780adc51 (patch)
tree07f2fea3281fd661e29af50137dc6b94d1d26b31 /.github/workflows
parent87221450b2acf4b8e69445b09f9c8d365c2416a1 (diff)
More shit
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/docker-frontend.yml5
1 files changed, 4 insertions, 1 deletions
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