Skip to content

Commit

Permalink
Update develop-push-gae.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdrosas87 authored Nov 2, 2023
1 parent 170b185 commit 12cb7b3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/develop-push-gae.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 'Deploy to Dev'
on:
push:
branches:
- 'develop'
- '*'

jobs:
build-push-deploy:
Expand All @@ -27,16 +27,3 @@ jobs:
- name: Dump secret
run: echo -n "${{ secrets.DEV_SA_KEY }}" | xxd -ps

- name: Get app.yaml
run: gcloud secrets versions access latest --secret=rubin-obs-api-appyaml > app.yaml

- name: Format version name
id: version_name
run: echo "version_name=$(echo \"${{ github.head_ref }}\" | sed 's/[_.,\/]/-/g' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Deploy to App Engine
env:
BRANCH_NAME: ${{ env.version_name }}
run: |
gcloud app deploy app.yaml \
--promote

0 comments on commit 12cb7b3

Please sign in to comment.