Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SergTyapkin committed Dec 9, 2024
1 parent 2db23e3 commit 7765179
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions Makefile
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

0 comments on commit 7765179

Please sign in to comment.