diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 022920d..28f1b0e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -20,6 +20,7 @@ jobs: options: --privileged permissions: contents: read + packages: write id-token: write steps: @@ -28,10 +29,10 @@ jobs: - name: Build env: - registry: ${{ vars.REGISTRY }} - username: ${{ vars.QUAY_USER }} - password: ${{ secrets.QUAY_PASSWORD }} - image: ${{ vars.IMAGE_NAME }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + image: ${{ github.repository }} tag: ${{ github.ref_name }} composefile: ${{ vars.COMPOSEFILE }} run: | @@ -42,6 +43,6 @@ jobs: rpm-ostree compose image --initialize-mode=if-not-exists \ --format registry --layer-repo repo --cachedir=cache \ $composefile \ - $registry/$username/$image:$tag + $registry/$image:$tag \ No newline at end of file diff --git a/README.md b/README.md index c59fa80..87f141d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This is for building a custom base image for Fedora SilverBlue for personal use. -Images are built in Github Actions and uploaded to QUAY. +Images are built in Github Actions and uploaded to ghcr. *** # Manifests for rpm-ostree based Fedora variants