chore(ci): build PR images as pr-N (#1026)
- Remove event validity check (unneeded and was buggy) - Remove `branch` metadata trigger since it conflicts with the PR trigger
This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -39,21 +39,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DOCKER_BUILDKIT: "1"
|
DOCKER_BUILDKIT: "1"
|
||||||
steps:
|
steps:
|
||||||
- name: Check for event validity
|
|
||||||
if: |
|
|
||||||
!((
|
|
||||||
github.event_name == 'push'
|
|
||||||
) || (
|
|
||||||
github.event_name == 'release'
|
|
||||||
) || (
|
|
||||||
github.event.pull_request.head.repo.full_name != github.repository
|
|
||||||
) ||(
|
|
||||||
github.actor == 'dependabot[bot]' &&
|
|
||||||
github.event_name == 'pull_request' &&
|
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
|
||||||
))
|
|
||||||
run: echo "Not a valid event!" && exit 1
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: reviewdog/action-misspell@v1
|
- uses: reviewdog/action-misspell@v1
|
||||||
@@ -119,7 +104,6 @@ jobs:
|
|||||||
qmcgaw/gluetun
|
qmcgaw/gluetun
|
||||||
qmcgaw/private-internet-access
|
qmcgaw/private-internet-access
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch,enable=${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
|
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
|
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
|
||||||
type=semver,pattern=v{{major}}.{{minor}}
|
type=semver,pattern=v{{major}}.{{minor}}
|
||||||
|
|||||||
Reference in New Issue
Block a user