Skip to content

Commit ede3f85

Browse files
author
Yoan Moscatelli
committed
⚗️ skopeo reorder and ssh
1 parent b21239c commit ede3f85

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/build.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@ jobs:
6262
password: ${{ secrets.GITHUB_TOKEN }}
6363
defaults:
6464
run:
65-
shell: bash
65+
shell: zsh
6666
outputs:
6767
artifact-name: ${{ steps.upload.outputs.name }}
6868
artifact-link: ${{ steps.upload.outputs.link }}
6969
steps:
70-
- name: "Debug: SSH to runner"
71-
uses: scality/actions/action-ssh-to-runner@1.5.0
70+
- name: Checkout
71+
uses: actions/checkout@v4
7272
with:
73-
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }}
74-
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }}
75-
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }}
76-
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }}
77-
timeout-minutes: 30
78-
if: always()
73+
ref: ${{ inputs.ref }}
74+
# NOTE: We fetch depth so that we can put the right `GIT` reference
75+
# in the product.txt
76+
fetch-depth: 0
77+
- name: Set safe directory (since container is root and not user 1001)
78+
run: git config --global --add safe.directory ${{ github.workspace }}
7979
- name: show skopeo version
8080
run: skopeo --version
8181
- name: Pull Fluent Bit image before authentication
@@ -114,25 +114,25 @@ jobs:
114114
skopeo --debug inspect docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8
115115
- name: manual pull with credentials
116116
if: always()
117-
run: skopeo --debug --override-os linux --insecure-policy copy --retry-times 5 --retry-delay 20s --src-username ${{ secrets.DOCKERHUB_LOGIN }} --src-password ${{ secrets.DOCKERHUB_PASSWORD }} --format v2s2 docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8 dir:./
117+
run: skopeo --debug --override-os linux --insecure-policy copy --retry-times 5 --retry-delay 20s --src-username ${{ secrets.DOCKERHUB_LOGIN }} --src-password ${{ secrets.DOCKERHUB_PASSWORD }} --format v2s2 docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8 dir:/tmp
118118
- name: manual pull with rate limit
119119
if: always()
120-
run: skopeo --debug --override-os linux --insecure-policy copy --retry-times 5 --retry-delay 20s --image-parallel-copies 1 --format v2s2 docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8 dir:./
120+
run: skopeo --debug --override-os linux --insecure-policy copy --retry-times 5 --retry-delay 20s --image-parallel-copies 1 --format v2s2 docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8 dir:/tmp
121121
- name: manual pull with rate limit and credentials
122122
if: always()
123-
run: skopeo --debug --override-os linux --insecure-policy copy --retry-times 5 --retry-delay 20s --image-parallel-copies 1 --src-username ${{ secrets.DOCKERHUB_LOGIN }} --src-password ${{ secrets.DOCKERHUB_PASSWORD }} --format v2s2 docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8 dir:./
123+
run: skopeo --debug --override-os linux --insecure-policy copy --retry-times 5 --retry-delay 20s --image-parallel-copies 1 --src-username ${{ secrets.DOCKERHUB_LOGIN }} --src-password ${{ secrets.DOCKERHUB_PASSWORD }} --format v2s2 docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8 dir:/tmp
124124
- name: manual pull
125125
if: always()
126-
run: skopeo --debug --override-os linux --insecure-policy copy --retry-times 5 --retry-delay 20s --format v2s2 docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8 dir:./
127-
- name: Checkout
128-
uses: actions/checkout@v4
126+
run: skopeo --debug --override-os linux --insecure-policy copy --retry-times 5 --retry-delay 20s --format v2s2 docker://cr.fluentbit.io/fluent/fluent-bit:3.2.8 dir:/tmp
127+
- name: "Debug: SSH to runner"
128+
uses: scality/actions/action-ssh-to-runner@1.5.0
129129
with:
130-
ref: ${{ inputs.ref }}
131-
# NOTE: We fetch depth so that we can put the right `GIT` reference
132-
# in the product.txt
133-
fetch-depth: 0
134-
- name: Set safe directory (since container is root and not user 1001)
135-
run: git config --global --add safe.directory ${{ github.workspace }}
130+
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }}
131+
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }}
132+
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }}
133+
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }}
134+
timeout-minutes: 30
135+
if: always()
136136
- name: Build everything
137137
run: cd "${{ github.workspace }}" && ./doit.sh -n 4 --verbosity 2 --failure-verbosity 2
138138
- name: Prepare artifacts

0 commit comments

Comments
 (0)