From 2849b21d30286549312774c4c91ccee5762ee943 Mon Sep 17 00:00:00 2001 From: Darius Rapalis Date: Sun, 16 Mar 2025 14:52:28 +0200 Subject: [PATCH] rearrange steps? --- .github/workflows/cd.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index da9cb88..0450c67 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -14,19 +14,6 @@ jobs: runs-on: ubuntu-latest steps: - - id: 'auth' - uses: 'google-github-actions/auth@v2' - with: - credentials_json: '${{ secrets.GCP_CREDENTIALS }}' - - - name: 'Set up Cloud SDK' - uses: 'google-github-actions/setup-gcloud@v2' - with: - version: 'latest' - - - name: 'Use gcloud CLI' - run: 'gcloud info' - - name: Check out code uses: actions/checkout@v4 @@ -38,5 +25,16 @@ jobs: - name: Build run: scripts/buildprod.sh + - id: 'auth' + uses: 'google-github-actions/auth@v2' + with: + credentials_json: '${{ secrets.GCP_CREDENTIALS }}' + + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v2' + + - name: 'Use gcloud CLI' + run: 'gcloud info' + - name: Push to Google run: gcloud builds submit --tag us-central1-docker.pkg.dev/notely-453912/notely-ar-repo/notely:latest . \ No newline at end of file