-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow to build and push Docker image
- Loading branch information
1 parent
f0cde6e
commit 9cce5c9
Showing
2 changed files
with
26 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Deployment | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]+" | ||
|
||
env: | ||
docker_image_tag: ${{ github.ref == 'refs/heads/main' && github.sha || github.ref_name }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: integration-os/google-artifact-registry-action@v2 | ||
with: | ||
image: "us-docker.pkg.dev/integrationos/docker-oss/oauth:${{ env.docker_image_tag }}" | ||
service_account: [email protected] | ||
workload_identity_provider: projects/356173785332/locations/global/workloadIdentityPools/github-actions/providers/github-actions |
This file was deleted.
Oops, something went wrong.