Skip to content

Commit c467a15

Browse files
authored
Wrap long commands in GitHub workflows (#2223)
1 parent b224641 commit c467a15

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/docker-build-test-upload.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ jobs:
5858
shell: bash
5959

6060
- name: Build image 🛠
61-
run: docker build --rm --force-rm --tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }} images/${{ inputs.image }}/${{ inputs.variant != 'default' && inputs.variant || '.' }}/ --build-arg REGISTRY=${{ env.REGISTRY }} --build-arg OWNER=${{ env.OWNER }}
61+
run: >
62+
docker build
63+
--rm --force-rm
64+
--tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }}
65+
images/${{ inputs.image }}/${{ inputs.variant != 'default' && inputs.variant || '.' }}/
66+
--build-arg REGISTRY=${{ env.REGISTRY }}
67+
--build-arg OWNER=${{ env.OWNER }}
6268
env:
6369
DOCKER_BUILDKIT: 1
6470
# Full logs for CI build

.github/workflows/registry-move.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,18 @@ jobs:
3232
3333
- name: Login to Quay.io 🔐
3434
if: env.PUSH_TO_REGISTRY == 'true'
35-
run: skopeo login quay.io --username ${{ secrets.QUAY_USERNAME }} --password ${{ secrets.QUAY_ROBOT_TOKEN }}
35+
run: >
36+
skopeo login quay.io
37+
--username ${{ secrets.QUAY_USERNAME }}
38+
--password ${{ secrets.QUAY_ROBOT_TOKEN }}
3639
3740
- name: Move image from Docker Hub to Quay.io 🐳
3841
if: env.PUSH_TO_REGISTRY == 'true'
39-
run: |
40-
skopeo copy --multi-arch all docker://${{ env.OWNER }}/${{ matrix.image }}:${{ matrix.tag }} docker://quay.io/${{ env.OWNER }}/${{ matrix.image }}:${{ matrix.tag }}
42+
run: >
43+
skopeo copy
44+
--multi-arch all
45+
docker://${{ env.OWNER }}/${{ matrix.image }}:${{ matrix.tag }}
46+
docker://quay.io/${{ env.OWNER }}/${{ matrix.image }}:${{ matrix.tag }}
4147
4248
strategy:
4349
fail-fast: false

0 commit comments

Comments
 (0)