Skip to content
Snippets Groups Projects
Unverified Commit 0b79b29b authored by Dmitriy Safronov's avatar Dmitriy Safronov Committed by GitHub
Browse files

ci: pr with sha

parent 22947088
Branches
Tags
No related merge requests found
Pipeline #52209 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment