Skip to content

Commit

Permalink
use dockerhub context to push images
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jan 7, 2023
1 parent cba2e88 commit 4f6ca26
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,27 @@ jobs:
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
sudo mv /tmp/docker/* /usr/bin
- run:
name: Build and push Docker image
name: Build Docker image
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t bids/rshrf:latest -t bids/rshrf:$CIRCLE_TAG .
docker push bids/rshrf:latest
docker push bids/rshrf:$CIRCLE_TAG
docker build -t "bids/${CIRCLE_PROJECT_REPONAME,,}" .
- run:
name: push to dockerhub
command: |
wget https://raw.githubusercontent.com/bids-apps/maintenance-tools/main/circleci/push_docker.sh
bash push_docker.sh
workflows:
version: 2
build_and_deploy:
jobs:
- build:
context:
- dockerhub
filters:
tags:
only: /[0-9]+(\.[0-9]+)*/
branches:
only:
-master
-master

# VS Code Extension Version: 1.5.1

0 comments on commit 4f6ca26

Please sign in to comment.