From 92b16132fddbe9e6ebc86ca96694efcdfaf1de28 Mon Sep 17 00:00:00 2001 From: Nikolas S Date: Thu, 30 Dec 2021 13:57:27 +0200 Subject: [PATCH] added circleci.yml --- .circleci/config.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..ab4a31a --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,41 @@ +version: 2.1 + +jobs: + build: + docker: + - image: cimg/base + steps: + - checkout + - run: | + chmod +x docker-entrypoint.sh + chmod +x envsubst-on-templates.sh + chmod +x tune-worker-processes.sh + docker build . -t $DOCKER_HUB_ID/nginx:1.21.4-rtmp-geoip2-alpine --no-cache + + test: + docker: + - image: cimg/base + steps: + - checkout + - run: | + docker run -t --name webserver --rm $DOCKER_HUB_ID/nginx:1.21.4-rtmp-geoip2-alpine nginx -v + + deploy: + docker: + - image: cimg/base + auth: + username: $DOCKER_HUB_ID + password: $DOCKER_HUB_PASSWORD + steps: + - run: docker push $DOCKER_HUB_ID/nginx:1.21.4-rtmp-geoip2-alpine + +workflows: + build_and_test: + jobs: + - build + - test: + requires: + - build + - deploy: + requires: + - test