From 838ebcad044a41c9b09ca13c9f9a892e3163bee0 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 | 19 +++++++++++++++++++ 1 file changed, 19 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..91a5ff5 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,19 @@ +on: + push: + tags: + - "v*" + +env: + CONTAINER_ADDRESS: host.containers.internal:5000 + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - 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 }}