Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
fix: ci push to ghcr instead of docker.pkg (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheibal authored May 12, 2022
1 parent 24651f7 commit 7e66bd7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
echo "VERSION=${VERSION}" >> ${GITHUB_ENV};
- name: docker build
run: docker build
--tag docker.pkg.github.com/${GITHUB_REPOSITORY}/cwa-quick-test-backend:latest
--tag docker.pkg.github.com/${GITHUB_REPOSITORY}/cwa-quick-test-backend:${VERSION}
--tag ghcr.io/${GITHUB_REPOSITORY}/cwa-quick-test-backend:latest
--tag ghcr.io/${GITHUB_REPOSITORY}/cwa-quick-test-backend:${VERSION}
--tag ${TRUSTED_URL}/${TRUSTED_REPOSITORY}/cwa-quick-test-backend:${VERSION}
--build-arg MAVEN_PASSWORD=${APP_PACKAGES_PASSWORD}
--build-arg MAVEN_USERNAME=${APP_PACKAGES_USERNAME}
Expand All @@ -36,9 +36,9 @@ jobs:
APP_PACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
- name: docker push github
run: |
echo ${GITHUB_TOKEN} | docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY_OWNER} --password-stdin
docker push docker.pkg.github.com/${GITHUB_REPOSITORY}/cwa-quick-test-backend:latest
docker push docker.pkg.github.com/${GITHUB_REPOSITORY}/cwa-quick-test-backend:${VERSION}
echo ${GITHUB_TOKEN} | docker login ghcr.io -u ${GITHUB_REPOSITORY_OWNER} --password-stdin
docker push ghcr.io/${GITHUB_REPOSITORY}/cwa-quick-test-backend:latest
docker push ghcr.io/${GITHUB_REPOSITORY}/cwa-quick-test-backend:${VERSION}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: docker push trusted
Expand Down

0 comments on commit 7e66bd7

Please sign in to comment.