From ffd97f676e9ef2ad1427d7d7b847b0f896216f85 Mon Sep 17 00:00:00 2001 From: JacqJingyuH <94708680+JacqJingyuH@users.noreply.github.com> Date: Tue, 21 Nov 2023 13:40:23 -0500 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c9211a5..38e27a7 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,4 +1,4 @@ -name: Docker Image CI +name: Docker Image CI/CD on: push: @@ -9,7 +9,7 @@ env: jobs: - build: + build-and-push-images: runs-on: ubuntu-latest @@ -25,10 +25,10 @@ jobs: run: | IMAGE_ID_API=ghcr.io/project-24-ontario-parks-T/$IMAGE_NAME_API echo IMAGE_ID_API=$IMAGE_ID_API - docker tag $IMAGE_NAME $IMAGE_ID_API:latest + docker tag $IMAGE_NAME_API $IMAGE_ID_API:latest docker push $IMAGE_ID_API:latest IMAGE_ID_FRONTEND=ghcr.io/project-24-ontario-parks-T/$IMAGE_NAME_FRONTEND echo IMAGE_ID_FRONTEND=$IMAGE_ID_FRONTEND - docker tag $IMAGE_NAME $IMAGE_ID_FRONTEND:latest + docker tag $IMAGE_NAME_FRONTEND $IMAGE_ID_FRONTEND:latest docker push $IMAGE_ID_FRONTEND:latest