This commit is contained in:
parent
92155092a5
commit
a778f82a41
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflows/ci.yml
Normal file
21
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
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:0
|
Loading…
Reference in a new issue