diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dc7c14d..2e9d403 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -on: [release] +on: [push, release] jobs: test: @@ -19,8 +19,12 @@ jobs: uses: docker/metadata-action@v3 with: images: ghcr.io/${{ github.repository }} - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - push: true - tags: ${{ steps.meta.outputs.tags }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} + - run: echo ${{ steps.meta.outputs.tags }} + - run: echo ${{ steps.meta.outputs.labels }} + # - name: Build and push Docker image + # uses: docker/build-push-action@v2 + # with: + # push: true + # tags: ${{ steps.meta.outputs.tags }}