mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 06:40:49 +08:00
测试 ref_type
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -37,13 +37,12 @@ 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: ${{ github.ref == 'refs/heads/main' }}
|
build_push: ${{ github.ref_type == 'tag' }}
|
||||||
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=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
|
Reference in New Issue
Block a user