2
0
Fork 0
mirror of https://code.forgejo.org/docker/metadata-action.git synced 2025-06-27 21:05:53 +00:00

attribute to enable/disable images

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-04-27 16:58:50 +02:00
parent be6d2cc1df
commit a5680a6642
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
8 changed files with 225 additions and 9 deletions

View file

@ -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: