forked from denismakogon/gocv-alpine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from kozzztya/ci
Configure CI
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]" | ||
|