Skip to content

Commit

Permalink
Add GitHub Actions workflow to build and push Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkuczera committed Apr 5, 2024
1 parent f0cde6e commit 70601a5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 38 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build

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
38 changes: 0 additions & 38 deletions .github/workflows/deployment.yml

This file was deleted.

0 comments on commit 70601a5

Please sign in to comment.