From e4ebc244fd9fa32936a2d8c99e171f9b48899a34 Mon Sep 17 00:00:00 2001 From: p0lygun Date: Sun, 25 Jun 2023 01:54:52 +0530 Subject: [PATCH] feat(gh-actions): migrate to ghcr.io from docker.pkg.github.com --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6acbf2..68dfa26 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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