mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 14:50:48 +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: |
|
metadata_images: |
|
||||||
docker.io/murielmay67761/docker-example
|
docker.io/murielmay67761/docker-example
|
||||||
# metadata_tags: |
|
# 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
|
- name: Check Docker image
|
||||||
run: |
|
run: |
|
||||||
set -x;
|
set -x;
|
||||||
# docker run --rm image-test:latest whoami
|
docker images;
|
||||||
# docker images;
|
|
||||||
docker run --rm ${{ steps.docker-build-push.outputs.imageid }} whoami
|
docker run --rm ${{ steps.docker-build-push.outputs.imageid }} whoami
|
||||||
|
@ -50,7 +50,7 @@ runs:
|
|||||||
show-progress: false
|
show-progress: false
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5 # https://github.com/docker/metadata-action
|
||||||
with:
|
with:
|
||||||
images: ${{ inputs.metadata_images }}
|
images: ${{ inputs.metadata_images }}
|
||||||
tags: ${{ inputs.metadata_tags }}
|
tags: ${{ inputs.metadata_tags }}
|
||||||
|
Reference in New Issue
Block a user