Skip to content

build-images

build-images #4

Workflow file for this run

name: build-images
on:
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write
jobs:
build:
runs-on: edera-large
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
- uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
id: build-dev
with:
context: .
platforms: linux/amd64
target: edera-benchmarks-dev
tags: ghcr.io/edera-dev/edera-benchmarks-dev:latest
push: true
cache-from: type=gha,scope=benchmarks
cache-to: type=gha,scope=benchmarks,mode=max
- uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
id: build-final
with:
context: .
platforms: linux/amd64
target: edera-benchmarks
tags: ghcr.io/edera-dev/edera-benchmarks:latest
push: true
cache-from: type=gha,scope=benchmarks
cache-to: type=gha,scope=benchmarks,mode=max
- name: Sign dev image
env:
DIGEST: ${{ steps.build-dev.outputs.digest }}
COSIGN_EXPERIMENTAL: "true"
run: cosign sign --yes "ghcr.io/edera-dev/edera-benchmarks-dev:latest@${DIGEST}"
- name: Sign final image
env:
DIGEST: ${{ steps.build-final.outputs.digest }}
COSIGN_EXPERIMENTAL: "true"
run: cosign sign --yes "ghcr.io/edera-dev/edera-benchmarks:latest@${DIGEST}"