Compare commits

..

3 Commits
v1.0 ... main

Author SHA1 Message Date
cc0469c72c
feat: update build script
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m52s
2024-10-09 21:59:44 +08:00
d95b33b987
feat: fix yml
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m24s
2024-10-09 21:36:33 +08:00
22eef9a8a7
feat: Obeying the md lint
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
2024-10-09 21:34:04 +08:00
3 changed files with 3 additions and 11 deletions

View File

@ -2,8 +2,6 @@ name: Build and Push Docker Image
on:
push:
branches:
- main
tags:
- v*

View File

@ -9,11 +9,5 @@ for dir in builds/*/ ; do
folder_name=$(basename $dir)
# Build the Docker image
docker buildx build --platform linux/amd64,linux/arm64 -t caddy-$folder_name $dir
# Tag the Docker image for pushing to the repository
docker tag caddy-$folder_name linloir/caddy-$folder_name
# Push the Docker image to the repository
docker push linloir/caddy-$folder_name
docker buildx build --push --platform linux/amd64,linux/arm64 -t linloir/caddy-$folder_name $dir
done

View File

@ -2,13 +2,13 @@
This repo contains different builds of Caddy
# Structure
## Structure
For each folder under `builds` there is a different build of Caddy. The folder name is the name of the build.
Dockerfile defines the image build process for each build.
# CI/CD
## CI/CD
The CI/CD is done using Github Actions. The workflow is defined in `.gitea/workflows/build.yml`. The workflow is triggered on push with any tags that start with `v`.