sneeuwvlok/.forgejo/workflows/runner-image.yml
Chris Kruining 4762d4189e
Some checks failed
Test action / Print hello world (push) Failing after 8s
right. obviously...
2025-09-04 11:06:57 +02:00

43 lines
No EOL
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
&& cd sneeuwvlok
- name: Install docker
run: nix-env -iA nixpkgs.podman
- name: __DEBUG__
run: which podman
- name: __DEBUG__
run: podman --version
- 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 }}