Skip to content

Commit

Permalink
Publish alipine containers as "mozilla/sops:X.X.X-alpine" and "mozill…
Browse files Browse the repository at this point in the history
…a/sops:alpine"
  • Loading branch information
ikedam committed Jan 18, 2020
1 parent 72523ac commit 5ab23f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Expand Up @@ -12,10 +12,25 @@ jobs:
command: |
docker build -t mozilla/sops .
docker tag mozilla/sops "mozilla/sops:$CIRCLE_SHA1"
docker build -f Dockerfile.alpine -t mozilla/sops:alpine .
- run:
name: Push containers
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
${GOPATH}/src/go.mozilla.org/sops/bin/ci/deploy_dockerhub.sh "latest"
${GOPATH}/src/go.mozilla.org/sops/bin/ci/deploy_dockerhub.sh "$CIRCLE_SHA1"
fi
if [ -n "${CIRCLE_TAG}" ]; then
TAG="${CIRCLE_TAG#v}-alpine"
docker tag mozilla/sops:alpine mozilla/sops:${TAG}
${GOPATH}/src/go.mozilla.org/sops/bin/ci/deploy_dockerhub.sh "${TAG}"
${GOPATH}/src/go.mozilla.org/sops/bin/ci/deploy_dockerhub.sh "alpine"
fi
workflows:
version: 2
build:
jobs:
- build:
filters:
tags:
only: /.*/

0 comments on commit 5ab23f4

Please sign in to comment.