Skip to content

Commit

Permalink
Hi This is me (#1322)
Browse files Browse the repository at this point in the history
Co-authored-by: Satyam Chaurasia <[email protected]>
  • Loading branch information
1 parent e522d95 commit 6b4d76f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,21 +126,21 @@ jobs:
command: |
VERSION=$(cat ./build/libs/version.txt)
SHA1_SHORT=${CIRCLE_SHA1::7}
docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} docker.io
docker login -u ${DCR_USR} -p ${DCR_PW} docker.io
docker build --target java17 \
-t ${DOCKER_REPO}:${SHA1_SHORT} \
-t ${DOCKER_REPO}:${VERSION}-17 \
-t ${DOCKER_REPO}:${VERSION} \
-t ${DOCKER_REPO} \
-t ${DCR_REPO}:${SHA1_SHORT} \
-t ${DCR_REPO}:${VERSION}-17 \
-t ${DCR_REPO}:${VERSION} \
-t ${DCR_REPO} \
.
docker push ${DOCKER_REPO}:${SHA1_SHORT}
docker push ${DCR_REPO}:${SHA1_SHORT}
- run:
name: Archive Docker images
command: |
VERSION=$(cat ./build/libs/version.txt)
docker save -o image-17.tar ${DOCKER_REPO}:${VERSION}-17
docker save -o image.tar ${DOCKER_REPO}:${VERSION}
docker save -o latest.tar ${DOCKER_REPO}:latest
docker save -o image-17.tar ${DCR_REPO}:${VERSION}-17
docker save -o image.tar ${DCR_REPO}:${VERSION}
docker save -o latest.tar ${DCR_REPO}:latest
- persist_to_workspace:
root: .
paths:
Expand Down Expand Up @@ -517,8 +517,8 @@ jobs:
- run:
name: Publish Docker images to Docker Hub
command: |
docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} docker.io
docker push ${DOCKER_REPO}
docker login -u ${DCR_USR} -p ${DCR_PW} docker.io
docker push ${DCR_REPO}
publish-github-release:
docker:
- image: circleci/golang:1.16.12
Expand Down Expand Up @@ -646,7 +646,7 @@ workflows:
- docker-push-stable:
filters:
branches:
only: master
only: develop
requires:
- integration-tests
- sca-integration-tests
Expand Down

0 comments on commit 6b4d76f

Please sign in to comment.