From 0d4bd67afbe381ddd2fcd5a58c3a62373bfc2cae Mon Sep 17 00:00:00 2001 From: Fijxu Date: Tue, 5 Nov 2024 17:57:58 -0300 Subject: [PATCH] Update CI --- .forgejo/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 16f67a6..4ae41a4 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -19,6 +19,16 @@ jobs: with: platforms: arm64 + - name: Cache Go packages + uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- + - name: Setup Docker BuildX system uses: docker/setup-buildx-action@v3 @@ -39,7 +49,7 @@ jobs: type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} - name: Build and push Docker AMD64/ARM64 - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64,linux/arm64/v8