From c2e012f0c00027b2aa70e19561bf7fdc95ca94e4 Mon Sep 17 00:00:00 2001 From: ScuroNeko Date: Thu, 23 Apr 2026 13:42:01 +0300 Subject: [PATCH] test --- .gitea/workflows/docker.yaml | 13 ++++++++++--- .gitea/workflows/go.yaml | 4 ++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index f3f1308..5a0dc29 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -1,5 +1,6 @@ name: Build and push image run-name: Building and pushing Docker image for ${{ gitea.repository }} by ${{ gitea.actor }} 🚀 + on: push: branches: [main] @@ -10,7 +11,8 @@ jobs: runs-on: linux-latest steps: - - uses: actions/checkout@v6 + - name: Check out repository code + uses: actions/checkout@v5 - name: Set up Buildx uses: docker/setup-buildx-action@v4 @@ -22,12 +24,15 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - - name: Build and push + - name: Build and push branch image + if: startsWith(gitea.ref, 'refs/heads/') uses: docker/build-push-action@v7 with: context: . push: true - tags: git.scuroneko.dev/scuroneko/runner-test:${{ gitea.ref_name }} + tags: git.scuroneko.dev/scuroneko/runner-test:latest + cache-from: type=gha,scope=runner-test + cache-to: type=gha,mode=max,scope=runner-test - name: Build and push tag image if: startsWith(gitea.ref, 'refs/tags/') @@ -38,3 +43,5 @@ jobs: tags: | git.scuroneko.dev/scuroneko/runner-test:${{ gitea.ref_name }} git.scuroneko.dev/scuroneko/runner-test:latest + cache-from: type=gha,scope=runner-test + cache-to: type=gha,mode=max,scope=runner-test \ No newline at end of file diff --git a/.gitea/workflows/go.yaml b/.gitea/workflows/go.yaml index fb99f79..1e2981c 100644 --- a/.gitea/workflows/go.yaml +++ b/.gitea/workflows/go.yaml @@ -13,6 +13,10 @@ jobs: uses: actions/setup-go@v6 with: go-version: "1.26" + cache: true + cache-dependency-path: | + go.sum + go.mod - name: Run golangci-lint uses: golangci/golangci-lint-action@v9