registry/.forgejo/workflows/ci.yml

22 lines
636 B
YAML
Raw Normal View History

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