Skip to content

Commit ed53f4f

Browse files
committed
cleanups
1 parent 0067abe commit ed53f4f

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/build_ci_multi.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,28 @@ permissions: {}
1414

1515
jobs:
1616
verify_secrets_ghcr:
17-
name: 'Verify credentials (ghcr)'
17+
name: 'Verify credentials'
1818
runs-on: 'ubuntu-latest'
1919
steps:
20-
- name: 'login ghcr.io'
20+
- name: 'login ghcr.io (action)'
2121
uses: redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # v1.7
2222
with:
23-
username: ${{ github.repository_owner }}
23+
username: ${{ github.actor }}
2424
password: ${{ secrets.GITHUB_TOKEN }}
2525
registry: ghcr.io/${{ github.repository_owner }}
2626

27-
verify_secrets_ghcr_direct:
28-
name: 'Verify credentials (ghcr direct)'
29-
runs-on: 'ubuntu-latest'
30-
steps:
31-
- name: "login ghcr.io"
27+
- name: "login ghcr.io (actor)"
28+
env:
29+
REGISTRY_USER: '${{ github.actor }}'
30+
REGISTRY_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
31+
IMAGE_REGISTRY: 'ghcr.io/${{ github.repository_owner }}'
32+
run: |
33+
podman --version
34+
echo "${REGISTRY_TOKEN}" | podman login -u "${REGISTRY_USER}" --password-stdin "${IMAGE_REGISTRY}"
35+
docker --version
36+
echo "${REGISTRY_TOKEN}" | docker login -u "${REGISTRY_USER}" --password-stdin "${IMAGE_REGISTRY}"
37+
38+
- name: "login ghcr.io (repo owner)"
3239
env:
3340
REGISTRY_USER: '${{ github.repository_owner }}'
3441
REGISTRY_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)