Unverified Commit f127bc0b authored by Dmitriy Safronov's avatar Dmitriy Safronov Committed by GitHub
Browse files

ci: pr with sha

parent 82e46632
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ jobs:
      # Login against a Docker registry except on PR
      # https://github.com/docker/login-action
      - name: Log into registry ${{ env.REGISTRY }}
        if: github.event_name != 'pull_request'
        # if: github.event_name != 'pull_request'
        uses: docker/login-action@v3
        with:
          registry: ${{ env.REGISTRY }}
@@ -60,6 +60,7 @@ jobs:
            type=ref,event=branch
            type=ref,event=branch,prefix=,suffix=-{{sha}}-{{date 'x'}}
            type=ref,event=pr
            type=ref,event=pr,suffix=-{{sha}}
            type=semver,pattern={{version}}
            type=semver,pattern={{major}}.{{minor}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.0.') && !contains(github.ref, '-') }}
            type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') && !contains(github.ref, '-') }}
@@ -83,7 +84,8 @@ jobs:
        uses: docker/build-push-action@v6
        with:
          context: .
          push: ${{ github.event_name != 'pull_request' }}
          # push: ${{ github.event_name != 'pull_request' }}
          push: true
          tags: ${{ steps.meta.outputs.tags }}
          labels: ${{ steps.meta.outputs.labels }}
          cache-from: type=local,src=/tmp/.buildx-cache
+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@

Dummy backend application for [Flux2 example tenant repo](https://github.com/dmitriysafronov/flux2-tenant-dummy-apps).

<!-- 0.0.10 -->
<!-- test -->