Skip to content

Commit

Permalink
Merge pull request #5 from kozzztya/ci
Browse files Browse the repository at this point in the history
Configure CI
  • Loading branch information
Sauraus authored Jul 11, 2019
2 parents 9f7feb2 + 4db4249 commit 065b240
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2.1
orbs:
aws-ecr: circleci/[email protected]
jobs:
ci:
machine:
docker_layer_caching: true
steps:
- aws-ecr/ecr-login
- run:
name: Pull ffmpeg-alpine
command: |
docker pull ${ECR_URL}/esportsone/ffmpeg-alpine:4.1.1-golang
docker tag ${ECR_URL}/esportsone/ffmpeg-alpine:4.1.1-golang esportsone/ffmpeg-alpine:4.1.1-golang
- aws-ecr/build-and-push-image:
dockerfile: ./build-stage/Dockerfile
account-url: ECR_URL
repo: esportsone/gocv-alpine
tag: ${CIRCLE_SHA1}-buildstage
- aws-ecr/build-and-push-image:
dockerfile: ./runtime/Dockerfile
account-url: ECR_URL
repo: esportsone/gocv-alpine
tag: ${CIRCLE_SHA1}-runtime
extra-build-args: --build-arg buildstage_image=${ECR_URL}/esportsone/gocv-alpine:${CIRCLE_SHA1}-buildstage
workflows:
version: 2
ci-cd:
jobs:
- ci:
context: ecr-staging
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dockerfile
4 changes: 3 additions & 1 deletion runtime/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM esportsone/gocv-alpine:4.1.1-buildstage as build-stage
ARG buildstage_image=1

FROM ${buildstage_image} as build-stage
FROM esportsone/ffmpeg-alpine:4.1.1-golang

LABEL maintainer="Denis Makogon. mail: [email protected]"
Expand Down

0 comments on commit 065b240

Please sign in to comment.