Switch to pushing to integrated registry
It's just easier.
This commit is contained in:
parent
9d00400a6a
commit
85958b2f8d
|
|
@ -10,7 +10,11 @@ on:
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: quay.io/cgwalters
|
REGISTRY: ghcr.io
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -20,7 +24,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: ["fedora", "c9s"]
|
os: ["fedora", "c9s"]
|
||||||
container:
|
container:
|
||||||
image: quay.io/fedora/fedora-coreos:testing-devel
|
# Yes, we're using this as a *builder* image.
|
||||||
|
image: quay.io/fedora/fedora-coreos:stable
|
||||||
options: "--user root --privileged -v /var/tmp:/var/tmp -v /tmp:/tmp"
|
options: "--user root --privileged -v /var/tmp:/var/tmp -v /tmp:/tmp"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
@ -29,14 +34,11 @@ jobs:
|
||||||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: rpm-ostree install distribution-gpg-keys
|
run: rpm-ostree install distribution-gpg-keys
|
||||||
- name: Login to registry
|
- name: Login
|
||||||
shell: bash
|
run: podman login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }}
|
||||||
env:
|
|
||||||
REGISTRY_CREDS: ${{ secrets.QUAY }}
|
|
||||||
run: podman login -u="cgwalters+gha" -p="${REGISTRY_CREDS}" quay.io
|
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
# Make force triggering a build always build the image
|
# Make force triggering a build always build the image
|
||||||
- run: echo "force_initialize=1" >> $GITHUB_ENV
|
#- run: echo "force_initialize=1" >> $GITHUB_ENV
|
||||||
if: github.event_name == 'workflow_dispatch'
|
# if: github.event_name == 'workflow_dispatch'
|
||||||
- name: Build ostree container
|
- name: Build ostree container
|
||||||
run: rpm-ostree compose image --format=registry ${force_initialize:+--initialize} ${{ matrix.os }}.yaml ${{ env.REGISTRY }}/${{ matrix.os }}-oscore
|
run: rpm-ostree compose image --format=registry ${force_initialize:+--initialize} ${{ matrix.os }}.yaml ${{ env.REGISTRY }}/${{ matrix.os }}-oscore
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue