Skip to content

Commit

Permalink
ci: migrate to GitHub Container Registry
Browse files Browse the repository at this point in the history
Migrate the container images from DockerHub to GitHub's container
registry.

fixes #60
  • Loading branch information
andyholmes committed Jun 21, 2022
1 parent cbf91bc commit 28faabe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,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: |
Expand All @@ -112,4 +113,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 }}
2 changes: 1 addition & 1 deletion .github/workflows/flatpak-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Flatpak Builder
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-40
image: ghcr.io/bilelmoussaoui/flatpak-github-actions:gnome-40
options: --privileged
strategy:
fail-fast: false
Expand Down

0 comments on commit 28faabe

Please sign in to comment.