registry/.forgejo/workflows/ci.yml
Marc Cataford b2127a1d0f
Some checks failed
/ test (push) Failing after 1m13s
ci: build + publish flow
2024-04-08 22:35:42 -04:00

20 lines
537 B
YAML

on:
push:
tags:
- "v*"
env:
CONTAINER_ADDRESS: host.containers.internal:5000
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: apt update && 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 }}