From f8cf40a3dcf6e6b3f4f465da6a2ec7ca46f8604b Mon Sep 17 00:00:00 2001 From: SquidSpirit Date: Tue, 28 Jan 2025 13:23:46 +0800 Subject: [PATCH 1/2] BLOG-36 Fix workflow buildx failed to push (#38) ### Description - As the title. ### Package Changes _No response_ ### Screenshots _No response_ ### Reference - Resolves #36 - Solution: https://stackoverflow.com/questions/75131872/error-failed-to-solve-failed-commit-on-ref-unexpected-status-400-bad-reques - Docker document: https://docs.docker.com/build/ci/github-actions/attestations/#max-level-provenance > Note that adding attestations to an image means you must push the image to a registry directly, as opposed to loading the image to the local image store of the runner. This is because the local image store doesn't support loading images with attestations. ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: https://git.squidspirit.com/squid/blog/pulls/38 Reviewed-by: zoe Co-authored-by: SquidSpirit Co-committed-by: SquidSpirit --- .gitea/workflows/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deployment.yaml b/.gitea/workflows/deployment.yaml index c0db390..6d83f9e 100644 --- a/.gitea/workflows/deployment.yaml +++ b/.gitea/workflows/deployment.yaml @@ -17,7 +17,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Build image and push to registry + - name: Login to registry uses: docker/login-action@v3 with: registry: ${{ vars.REGISTRY }} @@ -28,6 +28,7 @@ jobs: uses: docker/build-push-action@v6 with: push: true + provenance: false context: ./frontend tags: | ${{ vars.REGISTRY }}/${{ vars.IMAGE_REPO_FRONTEND }}:latest From 93f1bee0ae7f8224c0e07b32f6680d223298cc30 Mon Sep 17 00:00:00 2001 From: SquidSpirit Date: Tue, 28 Jan 2025 13:30:27 +0800 Subject: [PATCH 2/2] NO-ISSUE Upgrade version to 0.1.1 (#42) ### Description As the title. ### Package Changes _No response_ ### Screenshots _No response_ ### Reference _No issue_ ### Checklist - [x] A milestone is set - [ ] The related issuse has been linked to this branch Reviewed-on: https://git.squidspirit.com/squid/blog/pulls/42 Reviewed-by: zoe Co-authored-by: SquidSpirit Co-committed-by: SquidSpirit --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 662908c..7aba97e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "squidspirit-blog", - "version": "0.1.0", + "version": "0.1.1", "private": true, "license": "MIT", "scripts": {