Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanvugt authored Mar 19, 2023
1 parent 2942af5 commit 19e2b96
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ on:
release:
types: [published]
branches: [main]

jobs:

release:
name: Release
runs-on: ubuntu-latest
Expand All @@ -15,3 +17,24 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}

push-artifact-registry:
name: Push Image to GCP Artifact Registry
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Release to GCP Artifact Registry
uses: BattlesnakeOfficial/action-release-to-gcp-ar@main
with:
image_tag: ${{ github.event.release.tag_name }}
# Required
gcp_artifact_registry: ${{ secrets.GCP_ARTIFACT_REGISTRY }}
gcp_project_id: ${{ secrets.GCP_PROJECT_ID }}
gcp_region: ${{ secrets.GCP_REGION }}
gcp_service_account_email: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }}
gcp_workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
# Optional
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 19e2b96

Please sign in to comment.