diff --git a/.github/workflows/deployTest.yaml b/.github/workflows/deployTest.yaml index a0f1663..0c58ba3 100644 --- a/.github/workflows/deployTest.yaml +++ b/.github/workflows/deployTest.yaml @@ -7,23 +7,23 @@ on: jobs: deploy: - runs-on: ubuntu-latest - steps: - - name: Code Checkout - uses: actions/checkout@v2 + runs-on: ubuntu-latest + steps: + - name: Code Checkout + uses: 'actions/checkout@v4' - - name: Authenticate with Google Cloud - uses: 'google-github-actions/auth@v2' + - name: Authenticate with Google Cloud + uses: 'google-github-actions/auth@v2' with: project_id: ${{ secrets.GCLOUD_PROJECT_ID }} service_account_key: ${{ secrets.SERVICE_ACCOUNT_KEY }} export_default_credentials: true - - name: Build and Push - env: - GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }} - REPO: ${{ secrets.REPO }} - run: | - gcloud auth configure-docker europe-west1-docker.pkg.dev - docker build -t europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest . - docker push europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest + - name: Build and Push + env: + GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }} + REPO: ${{ secrets.REPO }} + run: | + gcloud auth configure-docker europe-west1-docker.pkg.dev + docker build -t europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest . + docker push europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest