Update release workflow

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2023-02-01 15:12:55 +01:00
parent 5dcbff7e4c
commit a716ca7187
No known key found for this signature in database
GPG Key ID: 7DD3015F3DDE4B9C

View File

@ -149,19 +149,33 @@ jobs:
cosignPassword: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PASSWORD || secrets.COSIGN_DEV_PASSWORD }}
micro-services-metadata:
name: Build micro services
name: Build docker images
runs-on: ubuntu-22.04
needs: [verify-inputs, prepare-release-branch]
uses: ./.github/workflows/build-micro-service-manual.yml
permissions:
contents: read
packages: write
secrets: inherit
with:
microService: qemu-metadata-api
imageTag: ${{ inputs.version }}
version: ${{ needs.verify-inputs.outputs.WITHOUT_V }}
ref: ${{ needs.verify-inputs.outputs.RELEASE_BRANCH }}
release: true
strategy:
matrix:
appName:
[qemu-metadata-api, libvirt]
include:
- appName: qemu-metadata-api
dockerfile: ./hack/qemu-metadata-api/Dockerfile
- appName: libvirt
dockerfile: ./cli/internal/libvirt/Dockerfile
steps:
- name: Build docker image
uses: ./.github/actions/build_micro_service
with:
name: ${{ matrix.appName }}
pushTag: ${{ inputs.version }}
projectVersion: ${{ needs.verify-inputs.outputs.WITHOUT_V }}
dockerfile: ${{ matrix.dockerfile }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
cosignPublicKey: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PUBLIC_KEY || secrets.COSIGN_DEV_PUBLIC_KEY }}
cosignPrivateKey: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PRIVATE_KEY || secrets.COSIGN_DEV_PRIVATE_KEY }}
cosignPassword: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PASSWORD || secrets.COSIGN_DEV_PASSWORD }}
update-versions:
name: Update container image versions