Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

chore: run docker rc release separately #3342

Merged
merged 1 commit into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ branches:
stages:
- test
- release-rc
- release-docker
- test-external

node_js:
Expand Down Expand Up @@ -252,6 +253,19 @@ jobs:
# only run if the last commit was not part of a release
- if [[ ! `git log -n 1 -q` =~ publish ]]; then npm run release:rc ; fi

- stage: release-docker
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: release docker
script:
# travis does not fetch the whole repo history, but we need that to work out the
# ref count to publish canary releases properly
- git fetch --unshallow
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# only run if the last commit was not part of a release
- if [[ ! `git log -n 1 -q` =~ publish ]]; then npm run docker:rc ; fi

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@
"release:post:remove-hoisted-modules": "json -I -f ./lerna.json -e \"delete this.command.bootstrap.nohoist\"",
"release:post:remove-examples": "json -I -f ./lerna.json -e \"this.packages = this.packages.filter(p => !p.includes('examples'))\"",
"release:post:revert-ignore-changes-to-lerna-config": "git update-index --no-assume-unchanged ./lerna.json",
"release:rc": "run-s release:pre:* release:canary docker:rc:* release:post:*",
"release:rc": "run-s release:pre:* release:canary release:post:*",
"release:canary": "lerna publish --canary --preid rc --dist-tag next --force-publish --yes",
"docker:rc": "run-s docker:rc:*",
"docker:rc:build": "docker build . --no-cache --tag js-ipfs:next --file ./Dockerfile.next",
"docker:rc:tag-next": "docker tag js-ipfs:next docker.io/ipfs/js-ipfs:next",
"docker:rc:tag-rc": "docker tag js-ipfs:next docker.io/ipfs/js-ipfs:v`npm show ipfs@next version -q`",
Expand Down