sneeuwvlok/.forgejo/workflows/runner-image.yml
Chris Kruining b3a9ea6057
Some checks failed
Test action / Print hello world (push) Failing after 8s
.
2025-09-04 11:19:43 +02:00

39 lines
No EOL
963 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: |
ls -al
git clone https://${{ env.registry }}/${{ env.owner }}/sneeuwvlok.git .
echo "$PWD"
ls -al
- 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 }} modules/nixos/services/development/forgejo/Dockerfile.default
- name: Push image
run: podman push ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}