first attempt to push an image

This commit is contained in:
Chris Kruining 2025-09-04 10:08:59 +02:00
parent fa81dbdcf6
commit 41a4fde9f2
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1,34 @@
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://${{ registry }}/${{ owner }}/sneeuwvlok.git
&& cd sneeuwvlok
- name: Log into registry
run: docker login ${{ registry }}
- name: Build image
run: >-
docker build
-t ${{registry}}/${{ owner }}/${{ image }}:${{ tag }} ./modules/nixos/services/development/forgejo/Dockerfile.default
- name: Push image
run: docker push ${{registry}}/${{ owner }}/${{ image }}:${{ tag }}