Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
build: switch from packages to container registry
Browse files Browse the repository at this point in the history
  • Loading branch information
powerman committed Sep 18, 2020
1 parent f10cbaf commit b3d4737
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/CI&CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ jobs:
- name: Upload to GitHub Container Registry
run: |
docker login ghcr.io -u '${{ secrets.CR_USER }}' -p '${{ secrets.CR_PAT }}'
docker login docker.pkg.github.com -u '${{ secrets.CR_USER }}' -p '${{ secrets.CR_PAT }}'
if echo "$GITHUB_REF" | grep -q '^refs/tags/v'; then
TAGS="${GITHUB_REF/refs\/tags\/v}"
else
Expand All @@ -111,9 +110,6 @@ jobs:
fi
for TAG in $TAGS; do
IMAGE_TAG="ghcr.io/${GITHUB_REPOSITORY,,*}:$TAG"
IMAGE_TAG="docker.pkg.github.com/${GITHUB_REPOSITORY,,*}/task:$TAG"
docker tag "$(basename $(go list -m))" "$IMAGE_TAG"
docker push "$IMAGE_TAG"
echo "DEBUG: tagged as '$IMAGE_TAG'"
docker image ls
done
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ available networks, then you'll have to restart docker service or reboot.
docker run --name=hlcup2020-task -i -t --rm \
-e HLCUP2020_DIFFICULTY=normal \
-v hlcup2020-task:/home/app/var/data \
docker.pkg.github.com/djarvur/allcups-itrally-2020-task/task:0.2.0
ghcr.io/djarvur/allcups-itrally-2020-task:0.2.2
```

0 comments on commit b3d4737

Please sign in to comment.