From a778f82a41cb22844eb6748f245c3673ff86042d Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Mon, 8 Apr 2024 21:04:08 -0400 Subject: [PATCH] ci: build + publish flow --- .forgejo/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..3531f88 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -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