From 3ec1fa9f941cee01416cc42b68445f45290794b1 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 | 20 ++++++++++++++++++++ 1 file changed, 20 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..ef4349f --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,20 @@ +on: + push: + tags: + - "v*" + +env: + CONTAINER_ADDRESS: host.containers.internal:5000 + +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: sudo apt install jq podman + - 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 }}