Skip to content

Refactor container workflows #1

Refactor container workflows

Refactor container workflows #1

Workflow file for this run

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

Check failure on line 32 in .github/workflows/add-docker-tag.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/add-docker-tag.yaml

Invalid workflow file

You have an error in your yaml syntax on line 32
- 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 }}