mirror of
https://github.com/fergalmoran/nginx-rtmp-geoip2-alpine.git
synced 2025-12-22 09:28:28 +00:00
added circleci.yml
This commit is contained in:
41
.circleci/config.yml
Normal file
41
.circleci/config.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user