Nightly Docker Build #92
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: Nightly Docker Build | |
on: | |
schedule: | |
- cron: "0 1 * * *" | |
workflow_dispatch: | |
permissions: | |
packages: write | |
jobs: | |
build-container: | |
name: Build nightly container | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Build image with Nix | |
run: "nix build .#main-docker" | |
- name: Load Docker image | |
run: "docker image load < result" | |
- name: Rename image to ghcr.io repo | |
run: "docker tag kitsune:latest ghcr.io/kitsune-soc/kitsune:nightly" | |
- name: Log in to ghcr.io | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Push to ghcr.io | |
run: "docker push ghcr.io/kitsune-soc/kitsune:nightly" |