This commit is contained in:
Elio Bischof
2025-06-17 22:11:14 +02:00
parent e56d6f62eb
commit 5441bfd422

View File

@@ -4,11 +4,10 @@ on:
jobs:
quality:
name: Ensure Quality
runs-on: ubuntu-latest
runs-on: depot-ubuntu-22.04-8
timeout-minutes: 30
permissions:
contents: "read"
packages: "write"
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
@@ -29,18 +28,15 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Set up Buildx docker-container builder
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/bake-action@v6
env:
# latest if branch is main, otherwise image version which is the pull request number
BUILD_CACHE_KEY: ${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
- uses: depot/setup-action@v1
- uses: depot/bake-action@v1
with:
source: .
targets: login-lint
project: w47wkxzdtw
push: false
targets: login-lint
files: |
docker-bake.hcl
docker-bake-ci.hcl
env:
# latest if branch is main, otherwise image version which is the pull request number
BUILD_CACHE_KEY: ${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}