Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 07e3fa7

Browse files
CI: login to container registry at the beginning of the workflow
rather than only in push-image.sh script.
1 parent 05ee1ab commit 07e3fa7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/gha.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
with:
3434
fetch-depth: 50
3535

36+
- name: Log in to the container registry
37+
run: echo "${CONTAINER_REG_PASS}" | docker login ghcr.io -u="${CONTAINER_REG_USER}" --password-stdin
38+
3639
- name: Pull or rebuild the image
3740
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh
3841

utils/docker/images/push-image.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,5 @@ then
4343
exit 1
4444
fi
4545

46-
echo "Log in to the container registry"
47-
echo "${CONTAINER_REG_PASS}" | docker login ghcr.io -u="${CONTAINER_REG_USER}" --password-stdin
48-
4946
echo "Push the image to the container registry"
5047
docker push ${CONTAINER_REG}:${TAG}

0 commit comments

Comments
 (0)