This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
Test container images #369
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: Test container images | |
on: | |
schedule: | |
- cron: '0 1 * * 0' | |
workflow_dispatch: | |
env: | |
NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" | |
jobs: | |
test-image: | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- geonix-base-image | |
os: | |
- ubuntu-22.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install nix | |
uses: cachix/install-nix-action@v22 | |
- name: Build image | |
run: > | |
nix build --accept-flake-config .#${{ matrix.image }} | |
- name: Test image (if geonix-base-image) | |
run: | | |
docker load < result | |
docker run geonix-base nix-shell -p nix-info --run "nix-info -m" | |
if: ${{ matrix.image == 'geonix-base-image' }} |