2023-07-16 10:49:16 +01:00
|
|
|
name: Build Docker Image
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- trunk
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
arm-docker-build:
|
|
|
|
runs-on: arm
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
|
|
|
uses: https://github.com/RouxAntoine/checkout@v3.5.4
|
|
|
|
with:
|
|
|
|
ref: trunk
|
2023-07-16 19:24:57 +01:00
|
|
|
- name: Build Image
|
2023-07-16 19:26:11 +01:00
|
|
|
run: /root/.nix-profile/bin/nix build .#docker
|
2023-07-16 19:24:57 +01:00
|
|
|
- name: Load and tag image
|
|
|
|
run: |
|
2023-07-16 19:26:11 +01:00
|
|
|
/run/current-system/sw/bin/docker tag $(docker load < result) icr.gmem.ca/dref:arm
|
|
|
|
/run/current-system/sw/bin/docker push icr.gmem.ca/dref:arm
|