8 Commits

Author SHA1 Message Date
f8cf40a3dc BLOG-36 Fix workflow buildx failed to push (#38)
All checks were successful
Frontend CI / build (push) Successful in 1m34s
### 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: #38
Reviewed-by: zoe <zoe@noreply.localhost>
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-28 13:23:46 +08:00
f0385a49a2 BLOG-34 Fix deployment workflow syntax error (#35)
Some checks failed
Frontend CI / build (push) Successful in 1m27s
Deployment / frontend-deployment (release) Failing after 3m6s
### Description

As the title.

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

- Resolves #34
- [GitHub Action - Docker Build And Push](https://github.com/marketplace/actions/build-and-push-docker-images#customizing)

### Checklist

- [x] A milestone is set
- [x] The related issuse has been linked to this branch

Reviewed-on: #35
Reviewed-by: zoe <zoe@noreply.localhost>
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-27 19:35:54 +08:00
35af8fd090 BLOG-9 Automatical deployment (#33)
All checks were successful
Frontend CI / build (push) Successful in 1m27s
### Description

- Create a Dockerfile to build the docker image.
- Set up the workflow to run deployment, which is to build and upload image to remote registry.
- Add a head meta html tag to show the version.

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

Resolves #9

### Checklist

- [x] A milestone is set
- [x] The related issuse has been linked to this branch

Reviewed-on: #33
Reviewed-by: zoe <zoe@noreply.localhost>
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-25 00:03:55 +08:00
fd3ba3bfb8 NO-ISSUE Create title check workflow (#30)
All checks were successful
Frontend CI / build (push) Successful in 1m20s
### Description

- The validation regex is `^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$`

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

_No issue_

### Checklist

- [x] The title is meet the format `'BLOG-XXX Title title title'`
- [ ] A milestone is set
- [ ] The related issuse has been linked to this branch

Reviewed-on: #30
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-21 08:21:51 +08:00
15d1bcb823 NO-ISSUE Fix PR template check list option content (#29)
All checks were successful
Frontend CI / build (push) Successful in 1m20s
### Description

- As the title

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

_No issue_

### Checklist

- [x] The title is meet the format `BLOG-XXX: Title title title`
- [ ] A milestone is set
- [ ] The related issuse has been linked to this branch

Reviewed-on: #29
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-20 23:15:08 +08:00
05fb268c3f NO-ISSUE Add some checklist option (#28)
All checks were successful
Frontend CI / build (push) Successful in 1m24s
### Description

- As the title

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

_No issue_

### Checklist

- [ ] A milestone is set

Reviewed-on: #28
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-20 21:08:50 +08:00
1b48a61c05 BLOG-8 Set up gitea action (#22)
All checks were successful
Frontend CI / build (push) Successful in 1m20s
### Description

- I found a build error when setting up gitea action, which is caused by circular dependency.
- We couldn't call dispatch in reducer, so something like streaming, delay, set interval could not be use in reducer directly.
- As for async function, we can use [`createAsyncTank`](https://redux-toolkit.js.org/api/createAsyncThunk).

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

Resolves #8

### Checklist

- [x] A milestone is set

Reviewed-on: #22
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-18 19:59:52 +08:00
253c3e349a NO-ISSUE Add a pull request template (#20)
## Description

As the title.

Reviewed-on: #20
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-18 15:08:18 +08:00