-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
965aabb
commit 9e01a06
Showing
7 changed files
with
56 additions
and
12 deletions.
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ version: 2.1 | |
orbs: | ||
anchore: anchore/[email protected] | ||
jobs: | ||
"fdk": | ||
"test": | ||
docker: | ||
- image: circleci/golang:1.12.4 | ||
working_directory: ~/fdk-go | ||
|
@@ -22,20 +22,39 @@ jobs: | |
git branch --set-upstream-to=origin/${CIRCLE_BRANCH} ${CIRCLE_BRANCH} | ||
fi | ||
"go1-12-4_security_check": | ||
"go1_stretch_security_check": | ||
executor: anchore/anchore_engine | ||
working_directory: ~/fdk-go | ||
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- checkout | ||
- run: | ||
name: Golang 1.12.4 Stretch build | ||
name: Golang 1 Stretch build | ||
command: | | ||
apk add bash | ||
./build-images.sh 1.12.4 stretch | ||
./build-images.sh 1 stretch | ||
- anchore/analyze_local_image: | ||
image_name: "fnproject/golang:1.12.4-stretch fnproject/golang:1.12.4-stretch-dev" | ||
image_name: "fnproject/go:1-stretch fnproject/go:1-stretch-dev" | ||
timeout: '500' | ||
policy_failure: true | ||
policy_bundle_file_path: .circleci/.anchore/policy_bundle.json | ||
- anchore/parse_reports | ||
|
||
"go1_alpine_security_check": | ||
executor: anchore/anchore_engine | ||
working_directory: ~/fdk-go | ||
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- checkout | ||
- run: | ||
name: Golang 1 Alpine 3.8 build | ||
command: | | ||
apk add bash | ||
./build-images.sh 1 alpine | ||
- anchore/analyze_local_image: | ||
image_name: "fnproject/go:1-alpine fnproject/go:1-alpine-dev" | ||
timeout: '500' | ||
policy_failure: true | ||
policy_bundle_file_path: .circleci/.anchore/policy_bundle.json | ||
|
@@ -45,5 +64,16 @@ workflows: | |
version: 2 | ||
build: | ||
jobs: | ||
- "fdk" | ||
- "go1-12-4_security_check" | ||
- "test" | ||
nightly: | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
jobs: | ||
- "test" | ||
- "go1_stretch_security_check" | ||
- "go1_alpine_security_check" |
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
2 changes: 1 addition & 1 deletion
2
images/1.12.4/alpine/build-stage/Dockerfile → images/1/alpine/build-stage/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,4 @@ | ||
FROM golang:1.12.4-alpine3.8 | ||
FROM golang:1-alpine3.8 | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache wget curl git bzr mercurial build-base |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
images/1.12.4/stretch/build-stage/Dockerfile → images/1/stretch/build-stage/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
File renamed without changes.
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
user="fnproject" | ||
image="go" | ||
goversion="1" | ||
stretch="stretch" | ||
alpine="alpine" | ||
|
||
|
||
docker push ${user}/${image}:${goversion}-${stretch} | ||
docker push ${user}/${image}:${goversion}-${stretch}-dev | ||
|
||
docker push ${user}/${image}:${goversion}-${alpine} | ||
docker push ${user}/${image}:${goversion}-${alpine}-dev |