sneeuwvlok/.forgejo/workflows/runner-image.yml
Chris Kruining 9c048aca05
Some checks failed
Test action / Print hello world (push) Failing after 12s
hmmmm
2025-09-04 13:56:16 +02:00

40 lines
No EOL
1.1 KiB
YAML

name: Test action
on:
workflow_dispatch:
push:
branches:
- main
env:
registry: git.amarth.cloud
owner: chris
image: default
tag: latest
jobs:
hello:
name: Print hello world
runs-on: default
steps:
- name: Pull dependencies
run: |
git clone https://${{ env.registry }}/${{ env.owner }}/sneeuwvlok.git .
- name: Prepare podman
run: |
# configure container policy to accept insecure registry
nix-env -iA nixpkgs.podman
# configure container policy to accept insecure registry
mkdir -p ~/.config/containers
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
- name: Build image
run: nix-build modules/nixos/services/development/forgejo/runners/default.nix
- name: Push image
run: |
podman login --username "${{ forge.actor }}" --password "${{ forge.token }}" ${{ env.registry }}
podman load < result
podman push localhost/default:latest ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}