This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
manually build a specific tag #18571
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: Image update | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
# Every hour at the 47th minute (randomly chosen) | |
- cron: '47 * * * *' | |
# Allow triggering manually from the Actions Tab | |
workflow_dispatch: | |
jobs: | |
image-update: | |
name: Update images | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
channel: [ "nixos-23.05" ] #, "nixos-22.11", "nixos-22.05", "nixos-21.11", "nixos-21.05", "nixos-20.09"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: nix-docker-base | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
# - name: Running non-pushing updater | |
# if: github.event_name == 'pull_request' | |
# run: nix-shell --run 'scripts/image-update test "$PWD" ${{ matrix.channel }} 16' | |
# env: | |
# REGISTRY_USER: niteo | |
- name: Running pushing updater | |
# Only push image updates to DockerHub for master commits | |
# if: github.event_name == 'pull_request' | |
run: nix-shell --run 'scripts/image-update push "$PWD" ${{ matrix.channel }} 16' | |
env: | |
REGISTRY_USER: niteo | |
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} |