From c8bd5754ba36f34638ca8708aeffb46941806400 Mon Sep 17 00:00:00 2001 From: V Date: Sat, 16 May 2026 21:45:52 +0100 Subject: [PATCH] Simplify publish workflow for Gitea runner --- .gitea/workflows/publish.yml | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index d8e36c7..63e220b 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -6,8 +6,8 @@ on: - main jobs: - lint-test: - name: Lint and test + publish: + name: Test, build, and push image runs-on: ubuntu-latest container: image: golang:1.24-bookworm @@ -41,27 +41,6 @@ jobs: - name: Test run: go test ./... - build-push: - name: Build and push image - runs-on: ubuntu-latest - needs: lint-test - container: - image: docker:27-git - steps: - - name: Checkout - env: - TOKEN: ${{ github.token }} - run: | - set -eu - git init . - if [ -n "${TOKEN:-}" ]; then - git remote add origin "https://x-access-token:${TOKEN}@k3gtpi.jumpingcrab.com/${GITHUB_REPOSITORY}.git" - else - git remote add origin "https://k3gtpi.jumpingcrab.com/${GITHUB_REPOSITORY}.git" - fi - git fetch --depth=1 origin "${GITHUB_SHA}" - git checkout --detach FETCH_HEAD - - name: Read version run: | version="$(tr -d '[:space:]' < VERSION)" @@ -72,6 +51,12 @@ jobs: echo "VERSION=$version" >> "$GITHUB_ENV" echo "IMAGE=k3crpi.jumpingcrab.com:5000/sabisan:$version" >> "$GITHUB_ENV" + - name: Install Docker CLI + run: | + apt-get update + apt-get install -y --no-install-recommends docker.io + rm -rf /var/lib/apt/lists/* + - name: Log in to registry run: | echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login k3crpi.jumpingcrab.com:5000 \