registry/.forgejo/workflows/ci.yml
Marc Cataford 97b870ccdd
Some checks failed
/ test (push) Failing after 59s
ci: update runner label
2024-11-03 23:31:16 -05:00

21 lines
636 B
YAML

on:
push:
tags:
- "v*"
env:
CONTAINER_ADDRESS: host.containers.internal:5000
jobs:
test:
runs-on: runner-latest
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://forge.karnov.club
- name: Build image
run: podman build . -t container-registry:local
- 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:local ${{ env.CONTAINER_ADDRESS }}/container-registry:${{ env.GITHUB_REF_NAME }}