From 2114435318d02e2bc25086f31bbfd440c0cbd8c7 Mon Sep 17 00:00:00 2001 From: Angad Tendulkar Date: Tue, 7 Jan 2025 09:31:06 -0500 Subject: [PATCH] ok buddy --- .github/workflows/deploy.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 61118fa..b7cebda 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -71,15 +71,14 @@ jobs: username: oauth2accesstoken password: ${{ steps.gcp-auth.outputs.access_token }} - - name: Push to GCR - uses: docker/build-push-action@v2 - with: - context: . - file: /home/runner/work/attendance/attendance/src-api/Dockerfile - push: true - tags: | - us-central1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/attendance/attendance:latest - onlycs/attendance:latest + - name: Build Docker image + run: | + docker build . -t onlycs/attendance:latest -t us-central1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/attendance/attendance:latest + + - name: Push Docker image + run: | + docker push us-central1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/attendance/attendance:latest + docker push onlycs/attendance:latest - name: Deploy to Cloud Run run: |