kaas
Some checks failed
Create OCI image(s) / Build and push images (push) Has been cancelled

This commit is contained in:
Chris Kruining 2025-09-08 13:10:02 +02:00
parent 12a4a85510
commit 05f1bdbe1a
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -17,25 +17,17 @@ jobs:
name: Build and push images
runs-on: default
steps:
- name: Install nodejs
run: nix-env -iA nixpkgs.nodejs
- uses: actions/checkout@v4
- name: Prepare podman
- name: Install dependencies
run: |
# configure container policy to accept insecure registry
nix-env -iA nixpkgs.podman nixpkgs.kvmtool
nix-env -iA nixpkgs.nodejs nixpkgs.podman nixpkgs.kvmtool nixpkgs.curl nixpkgs.jq
# configure container policy to accept insecure registry
mkdir -p ~/.config/containers
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
- name: Create image
run: |
nix-build src/default.nix
podman load < result
- uses: actions/checkout@v4
- name: Log into registry
run: |
podman login \
@ -52,6 +44,11 @@ jobs:
echo "~/.config/containers/auth.json"
[ -f ~/.config/containers/auth.json ] && cat ~/.config/containers/auth.json || echo "file doesn't exist"
- name: Create image
run: |
nix-build src/default.nix
podman load < result
- name: Push image
run: >-
podman push