Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .circleci/config.yml #14

Merged
merged 19 commits into from
Mar 14, 2022
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: 2.1
orbs: # adds orbs to your configuration
jira: circleci/jira@1.3.1 # invokes the Jira orb, making its commands accessible
workflows:
build:
jobs:
- build:
post-steps:
- jira/notify
jobs:
build:
working_directory: /app
docker:
- image: docker:20.10-git
steps:
- checkout
- setup_remote_docker
- run:
name: Install dependencies
command: |
apk update && \
apk add --upgrade --no-cache \
curl \
jq
- run:
name: Build trunkplayer-NG Docker image
command: |
docker build -t trunkplayer/trunkplayer-ng:${CIRCLE_BRANCH} .
- run:
name: Build nginx Docker image
command: |
docker build -t trunkplayer/trunkplayer-ng-nginx:${CIRCLE_BRANCH} nginx/
- deploy:
name: Push application Docker image
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push "trunkplayer/trunkplayer-ng-nginx:${CIRCLE_BRANCH}"
docker push "trunkplayer/trunkplayer-ng:${CIRCLE_BRANCH}"