From afb022616e0710b9f7348d782d4427d0bb1344cd 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 1748610b..1e7d9174 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -107,11 +107,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: | @@ -128,4 +129,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