Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Image update

Image update #18442

Workflow file for this run

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-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 }}