sneeuwvlok/.forgejo/workflows/runner-image.yml
Chris Kruining f9328cd72e
Some checks failed
Test action / Print hello world (push) Failing after 8s
I am an idiot, as proven once more...
2025-09-04 11:22:59 +02:00

41 lines
No EOL
967 B
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: Install docker
run: |
nix-env -iA nixpkgs.podman
- name: Log into registry
run: |
podman login --username "${{ forge.actor }}" --password "${{ forge.token }}" ${{ env.registry }}
- name: Build image
run: >-
podman build
-t ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
-f Dockerfile.default
modules/nixos/services/development/forgejo
- name: Push image
run: |
podman push ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}