sneeuwvlok/.forgejo/workflows/runner-image.yml
Chris Kruining 4a26a4ad11
Some checks failed
Test action / Print hello world (push) Failing after 7s
.
2025-09-04 11:13:15 +02:00

35 lines
No EOL
904 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 }} sneeuwvlok/modules/nixos/services/development/forgejo/Dockerfile.default
- name: Push image
run: podman push ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}