Skip to content

Commit

Permalink
Added build-push steps to dev workflow
Browse files Browse the repository at this point in the history
Added build-push steps to dev workflow
  • Loading branch information
ericdrosas87 committed Aug 7, 2024
1 parent f0bb24a commit bb36703
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/develop-push-gae.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ jobs:
uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.DEV_SA_KEY }}
project_id: skyviewer
project_id: secrets.SV_PROJ_NAME
export_default_credentials: true

- name: Build Container Image
run: docker build -t "gcr.io/${{ secrets.SV_PROJ_NAME }}/investigations-api:${{ github.sha }}"

- name: Configure Docker Auth
run: gcloud --quiet auth configure-docker

- name: Push Container Image to GCR
run: docker push gcr.io/${{ secrets.SV_PROJ_NAME }}/investigations-api:${{ github.sha }}

- name: Get app.yaml
run: gcloud secrets versions access latest --secret=investigations-api-appyaml > app.yaml
Expand Down

0 comments on commit bb36703

Please sign in to comment.