Skip to content

Commit

Permalink
Push to ghcr instead
Browse files Browse the repository at this point in the history
  • Loading branch information
karuboniru committed Jan 24, 2024
1 parent 1963e19 commit b68dada
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
options: --privileged
permissions:
contents: read
packages: write
id-token: write

steps:
Expand All @@ -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: |
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b68dada

Please sign in to comment.