Bump h2 from 0.3.24 to 0.3.26 #1034
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: kuksa_val_docker | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
paths: | |
- ".github/workflows/kuksa_val_docker.yml" | |
- "kuksa-val-server/**" | |
- "kuksa_certificates/**" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
check_ghcr_push: | |
uses: eclipse-kuksa/kuksa-actions/.github/workflows/check_ghcr_push.yml@2 | |
secrets: inherit | |
build: | |
runs-on: [ ubuntu-latest ] | |
needs: check_ghcr_push | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
# list of Docker images to use as base name for tags | |
images: | | |
ghcr.io/eclipse/kuksa.val/kuksa-val | |
# generate Docker tags based on the following events/attributes | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- name: Log in to the Container registry | |
if: needs.check_ghcr_push.outputs.push == 'true' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Build kuksa.val server container and push to ghcr.io | |
if: needs.check_ghcr_push.outputs.push == 'true' | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: | | |
linux/amd64 | |
linux/arm64 | |
file: ./kuksa-val-server/docker/Dockerfile | |
context: . | |
push: true | |
tags: | | |
${{ steps.meta.outputs.tags }} | |
ttl.sh/kuksa.val/kuksa-server-${{github.sha}} | |
labels: ${{ steps.meta.outputs.labels }} | |
# Provenance to solve that an unknown/unkown image is shown on ghcr.io | |
# Same problem as described in https://github.com/orgs/community/discussions/45969 | |
provenance: false | |
- name: Build ephemeral KUKSA Server docker and push to ttl.sh | |
if: needs.check_ghcr_push.outputs.push == 'false' | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: | | |
linux/amd64 | |
linux/arm64 | |
file: ./kuksa-val-server/docker/Dockerfile | |
context: . | |
push: true | |
tags: ttl.sh/kuksa.val/kuksa-server-${{github.sha}} | |
labels: ${{ steps.meta.outputs.labels }} | |
# Provenance to solve that an unknown/unkown image is shown on ghcr.io | |
# Same problem as described in https://github.com/orgs/community/discussions/45969 | |
provenance: false |