build #242
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: build | |
on: | |
schedule: | |
- cron: 0 2 * * 6 | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
timeout-minutes: 40 | |
container: | |
image: docker.io/fedora:latest | |
# Fix SELinux for the built OSTree: https://github.com/coreos/rpm-ostree/issues/1943 | |
options: --privileged --security-opt label:disable | |
steps: | |
- name: Install dependencies | |
run: dnf install -y rpm-ostree selinux-policy selinux-policy-targeted policycoreutils podman | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Log into container registry | |
run: podman login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io | |
- name: Build OSTree and push it to registry | |
run: ./compose.sh registry |