From 9eea54fb76c9c4b17f7b01a1005919de5e4134bc Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Sat, 4 Jan 2025 11:35:25 -0500 Subject: [PATCH] docker: Build and publish in ghcr.io --- .github/workflows/docker.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b9fb6ce..ad29ca8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -52,11 +52,12 @@ jobs: push: true tags: localhost:5000/fedora-base:latest - - name: Login to Docker Hub + - name: Log in to the Container registry uses: docker/login-action@v2.1.0 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: | @@ -74,4 +75,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 }}