-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run workflows on any branch, and ensure binaries and images will buil…
…d from PRs
- Loading branch information
1 parent
7c6c25a
commit 364f21d
Showing
4 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- master | ||
pull_request: | ||
branches: | ||
- master | ||
- "*" | ||
|
||
workflow_dispatch: {} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ env: | |
jobs: | ||
release-binary: | ||
runs-on: ubuntu-latest | ||
if: contains(github.ref, 'tag') | ||
if: github.ref_type == 'tag' | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
@@ -57,10 +57,10 @@ jobs: | |
- name: Install cosign | ||
uses: sigstore/cosign-installer@main | ||
|
||
- name: Install docker buildx | ||
- name: Install Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build list of docker tags to use | ||
- name: Build list of Docker tags to use | ||
id: tag-types | ||
run: | | ||
if [[ ${{ contains(github.ref, 'tag') }} == true ]]; then | ||
|
@@ -83,7 +83,7 @@ jobs: | |
echo "EOF" | ||
} >> "$GITHUB_ENV" | ||
- name: Set docker labels and tags | ||
- name: Set Docker labels and tags | ||
id: metadata | ||
uses: docker/metadata-action@v4 | ||
with: | ||
|
@@ -103,7 +103,7 @@ jobs: | |
id: get-tag | ||
uses: olegtarasov/[email protected] | ||
|
||
- name: Build and push docker image | ||
- name: Build and push Docker image | ||
id: build-push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- master | ||
pull_request: | ||
branches: | ||
- master | ||
- "*" | ||
|
||
workflow_dispatch: {} | ||
|
||
|