4 Commits

Author SHA1 Message Date
dfea1166e1 测试 ref_type 2024-10-09 11:04:22 +08:00
4afc9248f1 测试 build_push 2024-10-09 10:55:41 +08:00
f5c94acf91 测试 build_push 2024-10-09 10:47:00 +08:00
2f7ba5802d 测试 metadata_tags 2024-10-09 10:46:11 +08:00

View File

@ -37,14 +37,12 @@ jobs:
with:
build_file: ./docker-build-push/Dockerfile
build_platforms: linux/amd64
build_push: ${{ github.ref == 'refs/heads/main' }}
build_push: ${{ github.ref_type == 'tag' }}
build_load: true
metadata_images: |
docker.io/${{ vars.DOCKERHUB_USERNAME }}/docker-example
ghcr.io/${{ github.repository }}
metadata_tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=tag,enable=true,priority=600
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}