mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:37:31 +00:00
depot
This commit is contained in:
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@@ -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'] }}
|
||||
|
Reference in New Issue
Block a user