Refactor container workflows #1
Workflow file for this run
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
name: Add Tags to Blockchain Release Images | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
source-image: | ||
description: Container source image (registry/image:tag) | ||
required: true | ||
type: string | ||
destination-image: | ||
description: Container destination image (registry/image:tag) | ||
required: true | ||
type: string | ||
workflow_call: | ||
inputs: | ||
source-image: | ||
description: Container source image (registry/image:tag) | ||
required: true | ||
type: string | ||
destination-image: | ||
description: Container destination image (registry/image:tag) | ||
required: true | ||
type: string | ||
jobs: | ||
add-tag: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
steps: | ||
<<<<<<< HEAD | ||
- id: 'auth-gcp-master' | ||
name: 'Authenticate to Google Cloud' | ||
uses: 'google-github-actions/auth@v2' | ||
======= | ||
- id: auth-gcp-master | ||
name: Authenticate to Google Cloud | ||
uses: google-github-actions/auth@v2 | ||
>>>>>>> 74c5f920c (Refactor container workflows) | ||
with: | ||
workload_identity_provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain-add-tag/providers/github-by-repos' | ||
service_account: 'celo-blockchain@devopsre.iam.gserviceaccount.com' | ||
access_token_lifetime: '10m' | ||
<<<<<<< HEAD | ||
- name: 'Set up Cloud SDK' | ||
uses: 'google-github-actions/setup-gcloud@v2' | ||
- id: add-tag-devopsre | ||
======= | ||
- name: Install regctl | ||
>>>>>>> 74c5f920c (Refactor container workflows) | ||
run: | | ||
curl -L https://github.com/regclient/regclient/releases/latest/download/regctl-linux-amd64 > regctl | ||
chmod 755 regctl | ||
- name: Use regctl to copy images (add tags) | ||
run: | | ||
regctl image copy {{ inputs.source-image }} {{ inputs.destination-image }} |