diff --git a/.gitea/workflows/release-tag.yaml b/.gitea/workflows/release-tag.yaml index 201b541..29f9363 100644 --- a/.gitea/workflows/release-tag.yaml +++ b/.gitea/workflows/release-tag.yaml @@ -46,19 +46,10 @@ jobs: images: | docker.io/${{ env.DOCKER_IMAGE_NAME }} tags: | - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} type=semver,pattern={{major}} type=raw,value=dev,enable=${{ github.ref == 'refs/heads/dev' }} - # type=pep440,pattern={{raw}},enable=${{ startsWith(github.ref, 'refs/tags/') }} - - # type=schedule,pattern={{date 'YYYYMMDD-HHmmss' tz='UTC'}} - # type=ref,event=branch - # type=ref,event=pr - # type=semver,pattern={{version}} - # type=semver,pattern={{major}}.{{minor}}.{{patch}} - # type=sha - - name: Print metadata run: | echo "tags: ${{ steps.meta.outputs.tags }}" diff --git a/.github/workflows/release-nightly.yaml b/.github/workflows/release-nightly.yaml index 875d95e..b30f56a 100644 --- a/.github/workflows/release-nightly.yaml +++ b/.github/workflows/release-nightly.yaml @@ -1,3 +1,4 @@ +# https://gitea.com/gitea/act_runner/src/commit/0e2a3e00f5b32d5407f4f929a1ae61d3df825362/.gitea/workflows/release-nightly.yml name: Release Nightly on: @@ -38,19 +39,10 @@ jobs: images: | ghcr.io/${{ env.GHCR_IMAGE_NAME }} tags: | - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} type=semver,pattern={{major}} type=raw,value=dev,enable=${{ github.ref == 'refs/heads/dev' }} - # type=pep440,pattern={{raw}},enable=${{ startsWith(github.ref, 'refs/tags/') }} - - # type=schedule,pattern={{date 'YYYYMMDD-HHmmss' tz='UTC'}} - # type=ref,event=branch - # type=ref,event=pr - # type=semver,pattern={{version}} - # type=semver,pattern={{major}}.{{minor}}.{{patch}} - # type=sha - - name: Print metadata run: | echo "tags: ${{ steps.meta.outputs.tags }}" diff --git a/README.md b/README.md index 3faadaa..cc3b6c1 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ -# docker-example \ No newline at end of file +# docker-example + +``` + # type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + # type=pep440,pattern={{raw}},enable=${{ startsWith(github.ref, 'refs/tags/') }} + + # type=schedule,pattern={{date 'YYYYMMDD-HHmmss' tz='UTC'}} + # type=ref,event=branch + # type=ref,event=pr + # type=semver,pattern={{version}} + # type=semver,pattern={{major}}.{{minor}}.{{patch}} + # type=sha +``` \ No newline at end of file