mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-24 03:37:59 +02:00
attribute to enable/disable images
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -146,6 +146,21 @@ jobs:
|
||||
prefix=foo-
|
||||
suffix=-bar
|
||||
|
||||
images:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Docker meta
|
||||
uses: ./
|
||||
with:
|
||||
images: |
|
||||
name=${{ env.DOCKER_IMAGE }}
|
||||
name=ghcr.io/name/app,enable=${{ github.event_name == 'pull_request' }}
|
||||
name=ghcr.io/name/release,enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||
|
||||
labels:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
Reference in New Issue
Block a user