Skip to content

Build and push copybara docker image #969

Build and push copybara docker image

Build and push copybara docker image #969

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@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=${{ steps.git.outputs.sha }}
type=raw,value=latest
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}