ci: build + publish flow
Some checks failed
/ test (push) Failing after 24s

This commit is contained in:
Marc 2024-04-08 21:04:08 -04:00
parent 92155092a5
commit 59409ff5b8
Signed by: marc
GPG key ID: 048E042F22B5DC79

20
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,20 @@
on:
push:
tags:
- "v*"
env:
CONTAINER_ADDRESS: host.containers.internal:5000
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: apt install jq podman -y
- uses: actions/checkout@v4
- name: Build image
run: ./build.sh
- name: Authenticate with registry
run: podman login -u srv_container-registry -p ${{ secrets.REGISTRY_TOKEN }} ${{ env.CONTAINER_ADDRESS }}
- name: Push image
run: podman push container-registry:0 ${{ env.CONTAINER_ADDRESS }}