mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-28 19:23:39 +00:00
Make the workaround one-liner like the cosign part
Also update the caching part of things btw Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
d020834b8c
commit
f57b1b1670
1 changed files with 2 additions and 12 deletions
14
.github/workflows/docker.yml
vendored
14
.github/workflows/docker.yml
vendored
|
@ -97,12 +97,7 @@ jobs:
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
- name: Workaround pushbot for misbehaving reverse proxies
|
- name: Workaround pushbot for misbehaving reverse proxies
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
run: |
|
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} docker push {}
|
||||||
set +xe
|
|
||||||
for each "${{ steps.meta.outputs.tags }}" in tag;
|
|
||||||
do
|
|
||||||
docker push $tag
|
|
||||||
done
|
|
||||||
|
|
||||||
# Sign the resulting Docker image digest except on PRs.
|
# Sign the resulting Docker image digest except on PRs.
|
||||||
# This will only write to the public Rekor transparency log when the Docker
|
# This will only write to the public Rekor transparency log when the Docker
|
||||||
|
@ -193,12 +188,7 @@ jobs:
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
- name: Workaround pushbot for misbehaving reverse proxies
|
- name: Workaround pushbot for misbehaving reverse proxies
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
run: |
|
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} docker push {}
|
||||||
set +xe
|
|
||||||
for each "${{ steps.meta.outputs.tags }}" in tag;
|
|
||||||
do
|
|
||||||
docker push $tag
|
|
||||||
done
|
|
||||||
|
|
||||||
# Sign the resulting Docker image digest except on PRs.
|
# Sign the resulting Docker image digest except on PRs.
|
||||||
# This will only write to the public Rekor transparency log when the Docker
|
# This will only write to the public Rekor transparency log when the Docker
|
||||||
|
|
Loading…
Reference in a new issue