Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cc0469c72c | |||
| d95b33b987 | |||
| 22eef9a8a7 |
@ -2,8 +2,6 @@ name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- v*
|
||||
|
||||
|
||||
@ -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
|
||||
@ -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`.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user