Skip to content

Commit dd743ee

Browse files
committed
change octomike to bids and format
1 parent f8d1237 commit dd743ee

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.circleci/config.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tag_filter: &tag_filter
55
branches:
66
ignore: /.*/
77

8-
version: 2
8+
version: 2.1
99
jobs:
1010
build:
1111
machine:
@@ -16,9 +16,9 @@ jobs:
1616
name: Build Docker image
1717
command: |
1818
git describe --tags --always > version
19-
docker build -t octomike/${CIRCLE_PROJECT_REPONAME,,} .
19+
docker build -t bids/${CIRCLE_PROJECT_REPONAME,,} .
2020
mkdir -p ${HOME}/docker
21-
docker save "octomike/${CIRCLE_PROJECT_REPONAME,,}" > ~/docker/image.tar
21+
docker save "bids/${CIRCLE_PROJECT_REPONAME,,}" > ~/docker/image.tar
2222
# persist guessed branch so we can use it in deploy/tag
2323
BRANCH=$(git branch --contains tags/${CIRCLE_TAG})
2424
echo -n ${BRANCH} > ~/docker/branch
@@ -38,7 +38,9 @@ jobs:
3838
command: |
3939
docker load -i /tmp/workspace/docker/image.tar
4040
# figure out a better test
41-
docker run -ti --rm --read-only --entrypoint /bin/sh octomike/${CIRCLE_PROJECT_REPONAME,,} -c 'test -d ${MCR_HOME}/runtime/glnxa64'
41+
docker run -ti --rm --read-only \
42+
--entrypoint /bin/sh bids/${CIRCLE_PROJECT_REPONAME,,} \
43+
-c 'test -d ${MCR_HOME}/runtime/glnxa64'
4244
deploy:
4345
docker:
4446
- image: circleci/buildpack-deps:stretch
@@ -53,21 +55,20 @@ jobs:
5355
if [[ -n "${CIRCLE_TAG}" ]]; then
5456
echo "${DOCKER_PASS}" | docker login --username "${DOCKER_USER}" --password-stdin
5557
# tag should always be X.Y.Z[-variant]
56-
docker tag octomike/${CIRCLE_PROJECT_REPONAME,,} octomike/${CIRCLE_PROJECT_REPONAME,,}:${CIRCLE_TAG}
57-
docker push octomike/${CIRCLE_PROJECT_REPONAME,,}:${CIRCLE_TAG}
58+
docker tag bids/${CIRCLE_PROJECT_REPONAME,,} bids/${CIRCLE_PROJECT_REPONAME,,}:${CIRCLE_TAG}
59+
docker push bids/${CIRCLE_PROJECT_REPONAME,,}:${CIRCLE_TAG}
5860
# also publish tag for the corresponding matlab release version, which is the name of the current branch
59-
docker tag octomike/${CIRCLE_PROJECT_REPONAME,,} octomike/${CIRCLE_PROJECT_REPONAME,,}:${BRANCH}
60-
docker push octomike/${CIRCLE_PROJECT_REPONAME,,}:${BRANCH}
61+
docker tag bids/${CIRCLE_PROJECT_REPONAME,,} bids/${CIRCLE_PROJECT_REPONAME,,}:${BRANCH}
62+
docker push bids/${CIRCLE_PROJECT_REPONAME,,}:${BRANCH}
6163
BRANCH=$(cat /tmp/workspace/docker/branch)
6264
# update major tag X.Y[-variant] to the latest in this branch
6365
MAJOR_TAG=$(echo "${CIRCLE_TAG}" | sed -rn 's#([[:digit:]]+).([[:digit:]]+).([[:digit:]]+)(.*)#\1.\2\4#p')
6466
if [[ -n "${MAJOR_TAG}" ]] ; then
65-
docker tag octomike/${CIRCLE_PROJECT_REPONAME,,} octomike/${CIRCLE_PROJECT_REPONAME,,}:${MAJOR_TAG}
66-
docker push octomike/${CIRCLE_PROJECT_REPONAME,,}:${MAJOR_TAG}
67+
docker tag bids/${CIRCLE_PROJECT_REPONAME,,} bids/${CIRCLE_PROJECT_REPONAME,,}:${MAJOR_TAG}
68+
docker push bids/${CIRCLE_PROJECT_REPONAME,,}:${MAJOR_TAG}
6769
fi
6870
fi
6971
workflows:
70-
version: 2
7172
build-test-deploy:
7273
jobs:
7374
- build:
@@ -80,3 +81,5 @@ workflows:
8081
requires:
8182
- test
8283
<<: *tag_filter
84+
85+
# VS Code Extension Version: 1.5.1

0 commit comments

Comments
 (0)