diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39f74e5..6d519ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,11 +66,13 @@ jobs: - name: Check the artifacts run: ls -ltR - - name: Login to Docker Hub + - name: Login to GHCR uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Docker Buildx id: buildx @@ -90,7 +92,7 @@ jobs: context: ./ file: ./Dockerfile push: true - tags: ripencc/nro-delegated-stats:${{ steps.branch_name.outputs.branch }} + tags: ghcr.io/ripe-ncc/nro-delegated-stats:${{ steps.branch_name.outputs.branch }} labels: "org.label-schema.vcs-ref=${{ github.sha }}" - name: Image digest