Gabriel Simmer
3e1ef2737c
Some checks failed
Build Docker Image / arm-docker-build (push) Failing after 1m18s
25 lines
728 B
YAML
25 lines
728 B
YAML
name: Build Docker Image
|
|
on:
|
|
push:
|
|
branches:
|
|
- trunk
|
|
|
|
jobs:
|
|
arm-docker-build:
|
|
runs-on: debian-latest-arm
|
|
steps:
|
|
- name: Install prerequisites
|
|
run: apt update && apt install -y sudo
|
|
- name: Install Nix
|
|
uses: https://github.com/cachix/install-nix-action@v22
|
|
with:
|
|
extra_nix_config: "experimental-features = nix-command flakes"
|
|
- name: Check out repository
|
|
uses: https://github.com/RouxAntoine/checkout@v3.5.4
|
|
with:
|
|
ref: trunk
|
|
- name: Build image
|
|
run: nix build .#docker
|
|
- name: Push image with Skopeo
|
|
run: nix-shell -p skopeo --command "skopeo copy docker-archive:result docker://icr.gmem.ca/dref:arm"
|