registry/.forgejo/workflows/ci.yml
Marc Cataford 484f9931d2
All checks were successful
/ test (push) Successful in 50s
feat: add volume for registry persistence
2024-04-09 00:07:51 -04:00

21 lines
600 B
YAML

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