mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 06:40:49 +08:00
测试 metadata_tags
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -30,10 +30,12 @@ jobs:
|
||||
metadata_images: |
|
||||
docker.io/murielmay67761/docker-example
|
||||
# metadata_tags: |
|
||||
# type=raw,value=latest
|
||||
# type=schedule,pattern=nightly,enable=true,priority=1000
|
||||
# type=ref,event=branch,enable=true,priority=600
|
||||
# type=ref,event=tag,enable=true,priority=600
|
||||
# type=ref,event=pr,prefix=pr-,enable=true,priority=600
|
||||
- name: Check Docker image
|
||||
run: |
|
||||
set -x;
|
||||
# docker run --rm image-test:latest whoami
|
||||
# docker images;
|
||||
docker images;
|
||||
docker run --rm ${{ steps.docker-build-push.outputs.imageid }} whoami
|
||||
|
@ -50,7 +50,7 @@ runs:
|
||||
show-progress: false
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
uses: docker/metadata-action@v5 # https://github.com/docker/metadata-action
|
||||
with:
|
||||
images: ${{ inputs.metadata_images }}
|
||||
tags: ${{ inputs.metadata_tags }}
|
||||
|
Reference in New Issue
Block a user