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

Commit feb2af8

Browse files
Merge pull request #949 from lukaszstolarczuk/fix-ghcr-login
Fix GH Container Registry log-in
2 parents 570933a + da7bdf7 commit feb2af8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/gha.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on: [push, pull_request]
44
env:
55
REPO: libpmemobj-cpp
66
GITHUB_REPO: pmem/libpmemobj-cpp
7+
CONTAINER_REG: ghcr.io/pmem/libpmemobj-cpp
78

89
jobs:
910
linux:
1011
name: Linux
1112
runs-on: ubuntu-latest
1213
env:
13-
CONTAINER_REG: ghcr.io/pmem/libpmemobj-cpp
1414
# use org's Private Access Token to log in to GitHub Container Registry
1515
CONTAINER_REG_USER: ${{ secrets.GH_CR_USER }}
1616
CONTAINER_REG_PASS: ${{ secrets.GH_CR_PAT }}
@@ -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)