snapshot-rawhide #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: snapshot-rawhide | |
on: | |
schedule: | |
- cron: "00 14 * * 1" | |
# push: | |
# branches: | |
# - snapshot-rawhide | |
workflow_dispatch: # allow manually triggering builds | |
jobs: | |
snapshot-rawhide: | |
name: Snapshot Fedora Rawhide Kinoite | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
steps: | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Pull the container to the runner and then push it | |
shell: bash | |
run: | | |
docker pull quay.io/fedora/fedora-kinoite:rawhide | |
docker image tag quay.io/fedora/fedora-kinoite:rawhide ghcr.io/${{ github.actor }}/fedora-kinoite:rawhide-snapshot | |
docker push ghcr.io/${{ github.actor }}/fedora-kinoite:rawhide-snapshot |