Skip to content

Commit

Permalink
Added configuration to tag image
Browse files Browse the repository at this point in the history
  • Loading branch information
giulio-giunta committed Dec 10, 2023
1 parent 131e461 commit 81d520a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,21 @@ jobs:
auth:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
environment:
TAG: 0.1.<< pipeline.number >>
steps:
- checkout
- setup_remote_docker:
version: 20.10.7
- run:
name: Build geekzone/infra image
command: |
docker build -t geekzone/infra .
docker build -t geekzone/infra:$TAG .
- deploy:
name: Push geekzone/infra image to Docker Hub
command: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push geekzone/infra
docker push geekzone/infra:$TAG
workflows:
main-infra:
Expand Down

0 comments on commit 81d520a

Please sign in to comment.