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:
Andrei Jiroh Halili 2023-07-15 15:25:31 +00:00
parent d020834b8c
commit f57b1b1670

View file

@ -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