From 63c2687c7a93dac52d6446fe682527fbd521f3b7 Mon Sep 17 00:00:00 2001 From: Justin Rubek <25621857+justinrubek@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:05:34 -0600 Subject: [PATCH] ci: switch from docker.io to ghcr.io --- .github/workflows/containers.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/containers.yaml b/.github/workflows/containers.yaml index a167c26..3f7d853 100644 --- a/.github/workflows/containers.yaml +++ b/.github/workflows/containers.yaml @@ -35,13 +35,13 @@ jobs: - name: login to registry env: - USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} - PASSWORD: ${{ secrets.DOCKER_HUB_TOKEN }} - run: echo ${PASSWORD} | nix develop .#ci -c skopeo login docker.io -u ${USERNAME} --password-stdin + USERNAME: ${{ github.actor }} + PASSWORD: ${{ secrets.GITHUB_TOKEN }} + run: echo ${PASSWORD} | nix develop .#ci -c skopeo login ghcr.io -u ${USERNAME} --password-stdin - name: push to registry env: REPO_OWNER: justinrubek REPO_NAME: ${{ inputs.repository_name }} VERSION: ${{ github.sha }} - run: nix develop .#ci -c skopeo copy docker-archive:result docker://${REPO_OWNER}/${REPO_NAME}:${VERSION} --insecure-policy + run: nix develop .#ci -c skopeo copy docker-archive:result docker://ghcr.io/${REPO_OWNER}/${REPO_NAME}:${VERSION} --insecure-policy