-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2db23e3
commit 7765179
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
-include ./docker-deploy/.env | ||
-include .env | ||
|
||
|
||
build: | ||
build: | ||
echo "[Make]: Running 'build' target in Makefile..." && \ | ||
cd docker-deploy && \ | ||
docker compose build --no-cache --progress=plain nginx; | ||
docker compose --env-file ../.env --progress=plain build --no-cache nginx; | ||
run: | ||
echo "[Make]: Running 'run' target in Makefile..." && \ | ||
echo "[Make]: Running 'run' target in Makefile..." && \ | ||
cd docker-deploy && \ | ||
docker compose down && \ | ||
docker compose up -d nginx; | ||
docker compose --env-file ../.env down && \ | ||
docker compose --env-file ../.env up -d nginx; | ||
down: | ||
echo "[Make]: Running 'down' target in Makefile..." && \ | ||
echo "[Make]: Running 'down' target in Makefile..." && \ | ||
cd docker-deploy && \ | ||
docker compose down; | ||
docker compose --env-file ../.env down; | ||
|
||
generate-certs: | ||
echo "[Make]: Running 'generate-certs' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/generate-certs.sh; | ||
echo "[Make]: Running 'generate-certs' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/generate-certs.sh | ||
renew-certs: | ||
echo "[Make]: Running 'renew-certs' target in Makefile..." && \ | ||
echo "[Make]: Running 'renew-certs' target in Makefile..." && \ | ||
cd docker-deploy && \ | ||
docker compose run --rm certbot renew; | ||
docker compose run --rm certbot renew | ||
setup-auto-renewing-certs: | ||
echo "[Make]: Running 'setup-auto-renewing-certs' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/setup-auto-renewing-certs.sh; | ||
echo "[Make]: Running 'setup-auto-renewing-certs' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/setup-auto-renewing-certs.sh | ||
|
||
update: | ||
echo "[Make]: Running 'update' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/update-deploy.sh; | ||
echo "[Make]: Running 'update' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/update-deploy.sh | ||
|
||
setup-ci: | ||
echo "[Make]: Running 'setup-ci' target in Makefile..." && \ | ||
echo "[Make]: Running 'setup-ci' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/setup-ci.sh | ||
bash ./docker-deploy/scripts/show-variables-to-github-ci.sh; | ||
bash ./docker-deploy/scripts/show-variables-to-github-ci.sh | ||
|
||
install-docker-if-not-exists: | ||
echo "[Make]: Running 'install-docker-if-not-exists' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/install-docker-if-not-exists.sh; | ||
echo "[Make]: Running 'install-docker-if-not-exists' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/install-docker-if-not-exists.sh | ||
|
||
set-docker-not-sudo: | ||
echo "[Make]: Running 'set-docker-not-sudo' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/set-docker-not-sudo.sh; | ||
echo "[Make]: Running 'set-docker-not-sudo' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/set-docker-not-sudo.sh | ||
|
||
setup-env-file: | ||
echo "[Make]: Running 'setup-env-file' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/setup-env-file.sh; | ||
echo "[Make]: Running 'setup-env-file' target in Makefile..." && \ | ||
bash ./docker-deploy/scripts/setup-env-file.sh | ||
|
||
all: | ||
echo "[Make]: Running 'all' target in Makefile..." && \ | ||
echo "[Make]: Running 'all' target in Makefile..." && \ | ||
make install-docker-if-not-exists | ||
make setup-env-file | ||
make generate-certs | ||
make setup-auto-renewing-certs | ||
make down | ||
make setup-ci | ||
make update | ||
make setup-env-file | ||
make generate-certs | ||
make setup-auto-renewing-certs | ||
make down | ||
make setup-ci | ||
make update |