diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cbc6f3ad3..0b31cc7a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,7 +81,11 @@ jobs: registry-url: https://registry.npmjs.org/ - run: node --version - run: npm ci - - run: npm run rebuild-docker-image - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + rebuild-docker-image: + needs: [publish] + runs-on: ubuntu-latest + steps: + - run: gh workflow run ci.yml --repo nextstrain/docker-base diff --git a/package.json b/package.json index 302932988..3ef55e73d 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "lint:fix": "eslint --fix src", "get-data": "env bash ./scripts/get-data.sh", "heroku-postbuild": "npm run build && npm run get-data", - "rebuild-docker-image": "env bash ./scripts/rebuild-docker-image.sh", "gzip-and-upload": "env bash ./scripts/gzip-and-upload.sh", "build-docs": "cd docs && make clean && make html && echo 'Docs rebuild, open docs/_build/html/index.html'", "test": "jest test/*.js", diff --git a/scripts/rebuild-docker-image.sh b/scripts/rebuild-docker-image.sh deleted file mode 100755 index 314c2a500..000000000 --- a/scripts/rebuild-docker-image.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -echo "Pinging Travis CI to rebuild Docker image" - -body='{ - "request": { - "branch": "master", - "message": "Build triggered from auspice" - } -}' - -curl -X POST https://api.travis-ci.com/repo/nextstrain%2Fdocker-base/requests \ - -H "Content-Type: application/json" \ - -H "Accept: application/json" \ - -H "Travis-API-Version: 3" \ - -H "Authorization: token $TRAVIS_AUTH_TOKEN" \ - -d "$body"