测试 metadata_tags

This commit is contained in:
严浩
2024-10-09 10:34:41 +08:00
committed by GitHub
parent 9e1bb6530f
commit 405463f095

View File

@ -37,16 +37,16 @@ jobs:
with: with:
build_file: ./docker-build-push/Dockerfile build_file: ./docker-build-push/Dockerfile
build_platforms: linux/amd64 build_platforms: linux/amd64
build_push: false build_push: ${{ github.ref == 'refs/heads/main' }}
build_load: true build_load: true
metadata_images: | metadata_images: |
docker.io/${{ vars.DOCKERHUB_USERNAME }}/docker-example docker.io/${{ vars.DOCKERHUB_USERNAME }}/docker-example
ghcr.io/${{ github.repository }} ghcr.io/${{ github.repository }}
# metadata_tags: | metadata_tags: |
# type=schedule,pattern=nightly,enable=true,priority=1000 type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
# type=ref,event=branch,enable=true,priority=600 type=ref,event=tag,enable=true,priority=600
# type=ref,event=tag,enable=true,priority=600 type=semver,pattern={{version}}
# type=ref,event=pr,prefix=pr-,enable=true,priority=600 type=semver,pattern={{major}}
- name: Check Docker image - name: Check Docker image
run: | run: |
set -x; set -x;