From 17dae825f3d4828489af44f0871f3932d7867d6e42349dfbccf4559ce2a6d111 Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Mon, 8 Jun 2026 22:22:54 +0200 Subject: [PATCH] chore: edit workflows --- .gitea/workflows/deploy.yaml | 37 ++++++++++++++++++++++++++++++++++++ .gitea/workflows/docker.yaml | 6 ------ 2 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..a2638c0 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,37 @@ +name: Docker Build and Push + +on: + workflow_dispatch: + push: + branches: + - 'main' + tags: + - '*' + release: + types: [ published ] + +env: + GOMPLATE_VERSION: 5.1.0 + GITEA_CONTAINER_REG: gitea.nerthus.nl + DOCKER_IMAGE_NAME: orbits-server + +jobs: + docker_build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + strategy: + fail-fast: false + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Install dependencies + run: | + curl -L -o /usr/local/bin/gomplate https://github.com/hairyhenderson/gomplate/releases/download/v{{ env.GOMPLATE_VERSION }}/gomplate_linux-amd64 + chmod +x /usr/bin/gomplate + + - name: Render template + run: | + gomplate diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index 397a8d2..b6263c5 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -23,12 +23,6 @@ jobs: strategy: fail-fast: false steps: - - name: Prepare for rootless docker - run: | - ls -l /run/docker.sock || true - ss -lx | grep docker || true - ps aux | grep dockerd || true - - name: Checkout repository uses: actions/checkout@v6