mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-14 07:10:48 +08:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
3624aae550 | |||
f622e0b7fa | |||
dfea1166e1 | |||
4afc9248f1 |
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -37,13 +37,12 @@ jobs:
|
||||
with:
|
||||
build_file: ./docker-build-push/Dockerfile
|
||||
build_platforms: linux/amd64
|
||||
build_push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/tags/*' }}
|
||||
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=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
@ -42,7 +42,7 @@ runs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5 # https://github.com/docker/metadata-action
|
||||
with:
|
||||
context: git
|
||||
# context: git
|
||||
# flavor
|
||||
images: ${{ inputs.metadata_images }}
|
||||
tags: ${{ inputs.metadata_tags }}
|
||||
|
Reference in New Issue
Block a user