Skip to content

Commit

Permalink
Update prod branch spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermaggedon committed Oct 28, 2024
1 parent fa93f18 commit 350d308
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:

# Deploys on version tag beginning v. Note there's a branch filter
# below, locks to the prod branch
tags:
- v*
branches:
prod

permissions:
contents: read
Expand All @@ -19,9 +19,6 @@ jobs:

deploy:

# Only fires on the prod branch
if: github.ref == 'refs/heads/dev'

name: Deploy to prod
runs-on: ubuntu-latest

Expand All @@ -32,14 +29,17 @@ jobs:

- name: Get version
id: version
run: echo VERSION=$(git describe --exact-match --tags | sed 's/^v//') >> $GITHUB_OUTPUT
run: echo VERSION=sha-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT

- name: Install deps
run: npm install

# Python package version MUST be a semantic version, but also doesn't
# matter, so just setting to 0.0.0.
# The container version MUST change on every push to get Cloud Run
# to re-deploy, so is based on git hash.
- name: Build container
run: make VERSION=${{ steps.version.outputs.VERSION }}

run: make PACKAGE_VERSION=0.0.0 VERSION=${{ steps.version.outputs.VERSION }}
- id: auth
name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
Expand Down

0 comments on commit 350d308

Please sign in to comment.