Skip to content

Commit

Permalink
feat(gh-actions): migrate to ghcr.io from docker.pkg.github.com
Browse files Browse the repository at this point in the history
  • Loading branch information
MagneticNeedle committed Jun 24, 2023
1 parent e134984 commit e4ebc24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
run: docker build . --file Dockerfile --tag $BRANCH_NAME

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$BRANCH_NAME
IMAGE_ID=ghcr.io/${{ github.repository }}/$BRANCH_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
Expand Down

0 comments on commit e4ebc24

Please sign in to comment.