3
0
Fork 0
mirror of https://gitea.com/docker/metadata-action.git synced 2024-11-21 11:39:33 +01:00

Merge pull request #472 from crazy-max/ci-context

ci: context job
This commit is contained in:
CrazyMax 2024-11-14 08:43:40 +01:00 committed by GitHub
commit 44d81d6d2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,24 @@ env:
BUILDX_VERSION: latest
jobs:
context:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
context:
- workflow
- git
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker meta
uses: ./
with:
context: ${{ matrix.context }}
multi-images:
runs-on: ubuntu-latest
steps:
@ -341,10 +359,6 @@ jobs:
name: Check manifest
run: |
docker buildx imagetools inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
bake:
runs-on: ubuntu-latest
@ -579,3 +593,13 @@ jobs:
type=sha
env:
DOCKER_METADATA_SHORT_SHA_LENGTH: ${{ matrix.short-length }}
dump:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Dump context
uses: crazy-max/ghaction-dump-context@v2