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 Sep 23, 2022
1 parent 4c17502 commit c2d42ea
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 @@ -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: |
Expand All @@ -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 }}
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/${{ github.repository }}:gnome-40
options: --privileged
strategy:
fail-fast: false
Expand Down

0 comments on commit c2d42ea

Please sign in to comment.