retry docker push step
This commit is contained in:
@@ -123,8 +123,14 @@ jobs:
|
|||||||
- name: Create manifest list and push
|
- name: Create manifest list and push
|
||||||
working-directory: ${{ runner.temp }}/digests
|
working-directory: ${{ runner.temp }}/digests
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
n=3
|
||||||
$(printf 'ghcr.io/wg-easy/wg-easy@sha256:%s ' *)
|
for i in $(seq 1 $n); do
|
||||||
|
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
||||||
|
$(printf 'ghcr.io/wg-easy/wg-easy@sha256:%s ' *) && break
|
||||||
|
|
||||||
|
[ "$i" = "$n" ] && exit 1
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -132,8 +132,14 @@ jobs:
|
|||||||
- name: Create manifest list and push
|
- name: Create manifest list and push
|
||||||
working-directory: ${{ runner.temp }}/digests
|
working-directory: ${{ runner.temp }}/digests
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
n=3
|
||||||
$(printf 'ghcr.io/wg-easy/wg-easy@sha256:%s ' *)
|
for i in $(seq 1 $n); do
|
||||||
|
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
||||||
|
$(printf 'ghcr.io/wg-easy/wg-easy@sha256:%s ' *) && break
|
||||||
|
|
||||||
|
[ "$i" = "$n" ] && exit 1
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -135,8 +135,14 @@ jobs:
|
|||||||
- name: Create manifest list and push
|
- name: Create manifest list and push
|
||||||
working-directory: ${{ runner.temp }}/digests
|
working-directory: ${{ runner.temp }}/digests
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
n=3
|
||||||
$(printf 'ghcr.io/wg-easy/wg-easy@sha256:%s ' *)
|
for i in $(seq 1 $n); do
|
||||||
|
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
||||||
|
$(printf 'ghcr.io/wg-easy/wg-easy@sha256:%s ' *) && break
|
||||||
|
|
||||||
|
[ "$i" = "$n" ] && exit 1
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user