Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Test container images #369

Test container images

Test container images #369

Workflow file for this run

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