diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 1e21ed2..5583bc5 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -17,11 +17,12 @@ jobs: username: fudaoyuanicu password: ${{ secrets.DOCKER_PASSWORD }} - uses: docker/metadata-action@v5 + id: meta with: images: fudaoyuanicu/015-app tags: | type=ref,event=tag - type=raw,value=latest + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} - name: Set build time id: build-time run: |