Skip to content

Commit

Permalink
Merge pull request #522 from Praqma/update-ci-to-run-build-in-loop
Browse files Browse the repository at this point in the history
Run CI docker build in a loop; bump up golang, alpine, helm-diff version in Dockerfile
  • Loading branch information
luisdavim authored Oct 4, 2020
2 parents dd1f7e5 + cc8b23d commit b56f7fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
14 changes: 8 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: docker:19.03.5-git
- image: docker:19.03.13-git
steps:
- checkout
- setup_remote_docker
Expand Down Expand Up @@ -44,14 +44,16 @@ jobs:
- run:
name: build docker images and push them to dockerhub
command: |
helm_versions=( "v3.3.4" "v.3.3.3" "v3.3.2" "v3.3.1" "v3.3.0" "v3.2.4" )
TAG=$(git describe --abbrev=0 --tags)
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t praqma/helmsman:$TAG-helm-v3.1.3 --build-arg GLOBAL_HELM_VERSION=v3.1.3 . --no-cache
docker push praqma/helmsman:$TAG-helm-v3.1.3
docker build -t praqma/helmsman:$TAG-helm-v3.2.4 --build-arg GLOBAL_HELM_VERSION=v3.2.4 . --no-cache
docker push praqma/helmsman:$TAG-helm-v3.2.4
for HELM_VERSION in "${helm_versions[@]}"
do
docker build -t praqma/helmsman:$TAG-helm-$HELM_VERSION --build-arg GLOBAL_HELM_VERSION=$HELM_VERSION . --no-cache
docker push praqma/helmsman:$TAG-helm-$HELM_VERSION
done
workflows:
version: 2
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG GO_VERSION="1.13.8"
ARG ALPINE_VERSION="3.11"
ARG GLOBAL_KUBE_VERSION="v1.14.10"
ARG GLOBAL_HELM_VERSION="v3.1.1"
ARG GLOBAL_HELM_DIFF_VERSION="v3.1.1"
ARG GO_VERSION="1.15.2"
ARG ALPINE_VERSION="3.12"
ARG GLOBAL_KUBE_VERSION="v1.19.0"
ARG GLOBAL_HELM_VERSION="v3.3.4"
ARG GLOBAL_HELM_DIFF_VERSION="v3.1.3"

### Helm Installer ###
FROM alpine:${ALPINE_VERSION} as helm-installer
Expand Down

0 comments on commit b56f7fe

Please sign in to comment.