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 flatpak#60
  • Loading branch information
andyholmes committed Oct 13, 2022
1 parent 5a78dec commit afb0226
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 @@ -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: |
Expand All @@ -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 }}
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 afb0226

Please sign in to comment.