Skip to content

Commit

Permalink
chore: Adding new github actions workflow for pushing containers (cel…
Browse files Browse the repository at this point in the history
…o-org#160)

Adding a new github actions workflow to deploy containers in a more secure manner (using workload identity federation).
  • Loading branch information
pputman-clabs committed Apr 24, 2023
1 parent 942ab9f commit fe3b63c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker_push_oidc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Push OIDC

on:
workflow_dispatch:
inputs:
build_env:
description: 'Build environment (staging|production)'
required: true
default: 'staging'
type: string

jobs:
Build-Celo-Oracle:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-oracle/providers/github-by-repos
service-account: '[email protected]'
artifact-registry: us-west1-docker.pkg.dev/devopsre/celo-oracle/celo-oracle
tag: ${{ inputs.build_env }}
context: .
trivy: true
trivy-timeout: 40m

0 comments on commit fe3b63c

Please sign in to comment.