diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d45d6c..71bcbdd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,6 +31,12 @@ jobs: uses: docker/metadata-action@v3 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=branch + type=ref,event=pr + type=raw,value={{branch}}-{{sha}}-{{date 'X'}} + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} - name: Build and push image uses: docker/build-push-action@v2