Go to file
Bo-Yi Wu 0d1a3ae368
ci: implement Docker image CI/CD workflow
- Add a new GitHub Actions workflow for Docker image creation and push
- Trigger the workflow on push to main branch and tags starting with 'v'
- Trigger the workflow on pull requests to the main branch
- Define environment variable `BUILDKIT_NO_CLIENT_TOKEN`
- Set up the workflow to run on `ubuntu-latest` with a specific container image
- Include steps for checking out the code, setting up QEMU, and Docker Buildx
- Configure Docker Buildx with debug mode and insecure entitlements
- Add steps to log in to Docker Hub using secrets for username and password
- Generate Docker image tags based on semantic versioning and push conditionally on event type
- Build and push Docker image specifying the platform, Dockerfile location, and tag and label metadata
- Disable provenance and SBOM (Software Bill of Materials) generation in the build-push action

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2024-02-20 09:43:08 +08:00
.gitea/workflows ci: implement Docker image CI/CD workflow 2024-02-20 09:43:08 +08:00
router chore: update Go version and add dependencies 2024-01-27 23:04:20 +08:00
.gitignore Initial commit 2024-01-27 14:49:10 +00:00
.goreleaser.yaml chore: refactor configuration and CI settings 2024-02-16 17:01:06 +08:00
LICENSE Initial commit 2024-01-27 14:49:10 +00:00
README.md docs: update README.md with information about Gitea Actions 2024-01-27 22:57:42 +08:00
go.mod chore: update module and import paths 2024-01-27 23:05:15 +08:00
go.sum build: add Go module and basic HTTP server using gin-gonic/gin 2024-01-27 22:59:59 +08:00
main.go chore: update module and import paths 2024-01-27 23:05:15 +08:00

README.md

go

Gitea actions example for Golang. Starting with Gitea 1.19, Gitea Actions are available as a built-in CI/CD solution.