Skip to content

feat: update to emulator 0.19.0 #2

feat: update to emulator 0.19.0

feat: update to emulator 0.19.0 #2

Workflow file for this run

name: operator
on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:
branches:
- '*'
permissions:
id-token: write
contents: read
packages: write
env:
REGISTRY: ghcr.io
jobs:
build:
name: Build and Push Docker Image
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository_owner }}/coprocessor-operator
tags: |
type=semver,pattern={{version}}
type=ref,event=pr
type=raw,value=testing,enable=${{ github.ref == format('refs/heads/{0}', 'testing') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
labels: |
org.opencontainers.image.title=Coprocessor Operator
org.opencontainers.image.description=Coprocessor Operator
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Github Container Registry (GHCR)
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Depot ClI
uses: depot/setup-action@v1
- name: Build and Push Docker Image with Depot
uses: depot/bake-action@v1
if: ${{!startsWith(github.ref, 'refs/tags/') }}
with:
project: ${{ vars.DEPOT_PROJECT }}
files: |
./docker-bake.hcl
./docker-bake.platforms.hcl
${{ steps.meta.outputs.bake-file }}
push: true