Skip to content

feat: build container via nix in CI #1

feat: build container via nix in CI

feat: build container via nix in CI #1

Workflow file for this run

name: Container
on:
- push
env:
REGISTRY: ghcr.io
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Nix
uses: DeterminateSystems/nix-installer-action@v10
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v4
- name: Build
run: nix build -L .#container
- name: Login
run: nix run nixpkgs#skopeo -- login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
- name: Push
run: nix run nixpkgs#skopeo -- copy docker-archive:result oci:$REGISTRY/$IMAGE_NAME:${{ github.ref_name }}