diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 4dd57c664..8aec429b1 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -38,31 +38,31 @@ jobs: # username: ${{ secrets.DOCKER_USERNAME }} # password: ${{ secrets.DOCKER_PASSWORD }} - - name: Setup GCP Service Account - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master - with: - version: 'latest' - service_account_email: ${{ secrets.GCP_SA_EMAIL }} - service_account_key: ${{ secrets.GCP_SA_KEY }} - export_default_credentials: true + - name: Setup GCP Service Account + uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + with: + version: 'latest' + service_account_email: ${{ secrets.GCP_SA_EMAIL }} + service_account_key: ${{ secrets.GCP_SA_KEY }} + export_default_credentials: true - - name: Configure Docker - run: | - gcloud auth configure-docker + - name: Configure Docker + run: | + gcloud auth configure-docker - - name: Build - run: | - docker build -t gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:latest . + - name: Build + run: | + docker build -t gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:latest . - - name: Push - run: | - docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:latest + - name: Push + run: | + docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:latest - - name: Deploy - run: | - gcloud run deploy helloworld \ - --region europe-west1 \ - --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld \ - --platform managed \ - --allow-unauthenticated \ - --project ${{ secrets.GCP_PROJECT_ID }} + - name: Deploy + run: | + gcloud run deploy helloworld \ + --region europe-west1 \ + --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld \ + --platform managed \ + --allow-unauthenticated \ + --project ${{ secrets.GCP_PROJECT_ID }}