-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): fix container publishing workflow conditions.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 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 |
---|---|---|
|
@@ -56,30 +56,30 @@ jobs: | |
./${{ matrix.path }}/* | ||
- name: π Install cosign | ||
if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder == 'true' }} | ||
if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder != 'false' }} | ||
uses: sigstore/[email protected] | ||
|
||
- name: π Setup Docker Buildx | ||
if: ${{ steps.file_change.outputs.container_folder == 'true' }} | ||
if: ${{ steps.file_change.outputs.container_folder != 'false' }} | ||
uses: docker/[email protected] | ||
|
||
- name: π Cache Docker Layers | ||
if: ${{ steps.file_change.outputs.container_folder == 'true' }} | ||
if: ${{ steps.file_change.outputs.container_folder != 'false' }} | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: alwatr-${{ matrix.path }} | ||
|
||
- name: π Log into registry ${{env.REGISTRY}} | ||
if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder == 'true' }} | ||
if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder != 'false' }} | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{env.REGISTRY}} | ||
username: ${{github.repository_owner}} | ||
password: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: π Extract metadata | ||
if: ${{ steps.file_change.outputs.container_folder == 'true' }} | ||
if: ${{ steps.file_change.outputs.container_folder != 'false' }} | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -92,7 +92,7 @@ jobs: | |
type=ref,enable=true,event=branch | ||
- name: π Build and push container image | ||
if: ${{ steps.file_change.outputs.container_folder == 'true' }} | ||
if: ${{ steps.file_change.outputs.container_folder != 'false' }} | ||
id: build_and_push | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -106,7 +106,7 @@ jobs: | |
BUILD_REV=${{github.sha}} | ||
- name: π Sign the image with GitHub OIDC Token | ||
if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder == 'true' }} | ||
if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder != 'false' }} | ||
env: | ||
COSIGN_EXPERIMENTAL: 'true' | ||
run: echo "${{steps.meta.outputs.tags}}" | xargs -I {} cosign sign --yes {}@${{steps.build_and_push.outputs.digest}} |