Skip to content

Migrate to the github container registry (#13) #834

Migrate to the github container registry (#13)

Migrate to the github container registry (#13) #834

Workflow file for this run

name: Build and push copybara docker image
on:
push:
schedule:
- cron: "0 1 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout google/copybara master
uses: actions/checkout@v4
with:
repository: google/copybara
ref: master
- id: git
run: echo sha=$(git rev-parse HEAD) >> $GITHUB_OUTPUT
- id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=${{ steps.git.outputs.sha }}
type=raw,value=latest
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}