Skip to content

Commit 8f94c13

Browse files
committed
avoid GH macros in shell code
1 parent e6fef8e commit 8f94c13

File tree

5 files changed

+50
-20
lines changed

5 files changed

+50
-20
lines changed

.github/workflows/build_ci_multi.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@ jobs:
2424
install_latest: [ true ]
2525
steps:
2626
- name: "login docker hub"
27+
env:
28+
DOCKER_HUB_USER: '${{secrets.DOCKER_HUB_USER}}'
29+
DOCKER_HUB_TOKEN: '${{secrets.DOCKER_HUB_TOKEN}}'
2730
run: |
28-
podman login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}} docker.io
29-
docker login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}}
31+
podman login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}" docker.io
32+
docker login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}"
3033
- name: "login quay.io"
34+
env:
35+
QUAY_USER: '${{secrets.QUAY_USER}}'
36+
QUAY_TOKEN: '${{secrets.QUAY_TOKEN}}'
3137
run: |
32-
podman login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
33-
docker login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
38+
podman login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
39+
docker login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
3440
- name: Checkout repository
3541
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3642
with:

.github/workflows/build_latest_release_multi.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,19 @@ jobs:
3434
password: ${{ env.REGISTRY_PASSWORD }}
3535
registry: ${{ env.IMAGE_REGISTRY }}
3636
- name: "login docker hub"
37+
env:
38+
DOCKER_HUB_USER: '${{secrets.DOCKER_HUB_USER}}'
39+
DOCKER_HUB_TOKEN: '${{secrets.DOCKER_HUB_TOKEN}}'
3740
run: |
38-
podman login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}} docker.io
39-
docker login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}}
41+
podman login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}" docker.io
42+
docker login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}"
4043
- name: "login quay.io"
44+
env:
45+
QUAY_USER: '${{secrets.QUAY_USER}}'
46+
QUAY_TOKEN: '${{secrets.QUAY_TOKEN}}'
4147
run: |
42-
podman login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
43-
docker login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
48+
podman login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
49+
docker login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
4450
- run: |
4551
sudo apt-get update
4652
sudo apt-get -y install qemu-user-static buildah less git make podman clamav clamav-freshclam

.github/workflows/build_master.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,19 @@ jobs:
3636
password: ${{ env.REGISTRY_PASSWORD }}
3737
registry: ${{ env.IMAGE_REGISTRY }}
3838
- name: "login docker hub"
39+
env:
40+
DOCKER_HUB_USER: '${{secrets.DOCKER_HUB_USER}}'
41+
DOCKER_HUB_TOKEN: '${{secrets.DOCKER_HUB_TOKEN}}'
3942
run: |
40-
podman login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}} docker.io
41-
docker login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}}
43+
podman login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}" docker.io
44+
docker login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}"
4245
- name: "login quay.io"
46+
env:
47+
QUAY_USER: '${{secrets.QUAY_USER}}'
48+
QUAY_TOKEN: '${{secrets.QUAY_TOKEN}}'
4349
run: |
44-
podman login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
45-
docker login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
50+
podman login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
51+
docker login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
4652
- run: |
4753
sudo apt-get update
4854
sudo apt-get -y install qemu-user-static buildah less git make podman clamav clamav-freshclam

.github/workflows/build_master_dev.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,19 @@ jobs:
3737
password: ${{ env.REGISTRY_PASSWORD }}
3838
registry: ${{ env.IMAGE_REGISTRY }}
3939
- name: "login docker hub"
40+
env:
41+
DOCKER_HUB_USER: '${{secrets.DOCKER_HUB_USER}}'
42+
DOCKER_HUB_TOKEN: '${{secrets.DOCKER_HUB_TOKEN}}'
4043
run: |
41-
podman login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}} docker.io
42-
docker login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}}
44+
podman login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}" docker.io
45+
docker login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}"
4346
- name: "login quay.io"
47+
env:
48+
QUAY_USER: '${{secrets.QUAY_USER}}'
49+
QUAY_TOKEN: '${{secrets.QUAY_TOKEN}}'
4450
run: |
45-
podman login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
46-
docker login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
51+
podman login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
52+
docker login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
4753
- run: |
4854
sudo apt-get update
4955
sudo apt-get -y install qemu-user-static buildah less git make podman clamav clamav-freshclam

.github/workflows/build_master_multi.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,19 @@ jobs:
3636
password: ${{ env.REGISTRY_PASSWORD }}
3737
registry: ${{ env.IMAGE_REGISTRY }}
3838
- name: "login docker hub"
39+
env:
40+
DOCKER_HUB_USER: '${{secrets.DOCKER_HUB_USER}}'
41+
DOCKER_HUB_TOKEN: '${{secrets.DOCKER_HUB_TOKEN}}'
3942
run: |
40-
podman login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}} docker.io
41-
docker login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}}
43+
podman login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}" docker.io
44+
docker login -u "${DOCKER_HUB_USER}" -p "${DOCKER_HUB_TOKEN}"
4245
- name: "login quay.io"
46+
env:
47+
QUAY_USER: '${{secrets.QUAY_USER}}'
48+
QUAY_TOKEN: '${{secrets.QUAY_TOKEN}}'
4349
run: |
44-
podman login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
45-
docker login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
50+
podman login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
51+
docker login -u "${QUAY_USER}" -p "${QUAY_TOKEN}" quay.io
4652
- run: |
4753
sudo apt-get update
4854
sudo apt-get -y install qemu-user-static buildah less git make podman clamav clamav-freshclam

0 commit comments

Comments
 (0)