From c2d42eae6af2bd4ed8a485e793af447fe5a967b5 Mon Sep 17 00:00:00 2001 From: Andy Holmes Date: Sun, 3 Jul 2022 13:55:41 -0700 Subject: [PATCH] ci: migrate to GitHub Container Registry Migrate the container images from DockerHub to GitHub's container registry. fixes #60 --- .github/workflows/docker.yml | 9 +++++---- .github/workflows/flatpak-test.yml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 09cdf2d3..9f823296 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -99,11 +99,12 @@ jobs: push: true tags: localhost:5000/fedora-base:latest - - name: Login to Docker Hub + - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Write the Dockerfile for the ${{ matrix.runtime.name }} runtime run: | @@ -120,4 +121,4 @@ jobs: context: . file: ${{ matrix.runtime.name }}.Dockerfile push: true - tags: bilelmoussaoui/flatpak-github-actions:${{ matrix.runtime.name }} + tags: ghcr.io/${{ github.repository }}:${{ matrix.runtime.name }} diff --git a/.github/workflows/flatpak-test.yml b/.github/workflows/flatpak-test.yml index 81a89715..52a9c40a 100644 --- a/.github/workflows/flatpak-test.yml +++ b/.github/workflows/flatpak-test.yml @@ -9,7 +9,7 @@ jobs: name: Flatpak Builder runs-on: ubuntu-latest container: - image: bilelmoussaoui/flatpak-github-actions:gnome-40 + image: ghcr.io/${{ github.repository }}:gnome-40 options: --privileged strategy: fail-fast: false