mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-13 23:57:13 +00:00
ca0fd7a31b
- Split Debian and Alpine into different build matrix This starts building both Debian and Alpine based images at the same time - Make use of Docker BuildKit, which improves speed also. - Use BuildKit caching for Rust Cargo across docker images. This prevents downloading the same crates multiple times. - Use Github Actions Services to start a docker registry, starting it via the build script sometimes caused issues. - Updated the Build workflow to use Ubuntu 20.04 which is more close to the Bullseye Debian release regarding package versions.
15 lines
517 B
Makefile
15 lines
517 B
Makefile
OBJECTS := $(shell find ./ -mindepth 2 -name 'Dockerfile*')
|
|
|
|
all: $(OBJECTS)
|
|
|
|
%/Dockerfile: Dockerfile.j2 render_template
|
|
./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"
|
|
|
|
%/Dockerfile.alpine: Dockerfile.j2 render_template
|
|
./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"
|
|
|
|
%/Dockerfile.buildx: Dockerfile.j2 render_template
|
|
./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"
|
|
|
|
%/Dockerfile.buildx.alpine: Dockerfile.j2 render_template
|
|
./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"
|