fix: npm permission issue again #270
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-latest | |
on: | |
workflow_dispatch: | |
push: | |
branches: [develop] | |
repository_dispatch: | |
types: [build-latest] | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2.1.2 | |
with: | |
node-version: '16' | |
- name: Install goss and dgoss | |
run: | | |
curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o $HOME/goss | |
chmod +rx $HOME/goss | |
curl -L https://github.com/aelsabbahy/goss/releases/latest/download/dgoss -o $HOME/dgoss | |
chmod +rx $HOME/dgoss | |
- name: Set SAKULI_VERSION to next | |
run: echo "SAKULI_VERSION=next" >> $GITHUB_ENV | |
- name: Add HOME directory to PATH | |
run: echo "$HOME" >> $GITHUB_PATH | |
- name: Build and test image | |
run: | | |
./build-base.sh | |
./build-latest.sh $SAKULI_VERSION ${{ secrets.NPM_TOKEN }} | |
- name: Login to Dockerhub | |
run: docker login -u ${{ secrets.DOCKER_USER }} -p "${{ secrets.DOCKER_PASSWORD }}" | |
- name: Publish image | |
run: docker push taconsol/sakuli:latest | |
- name: Trigger sakuli-docker-remote-win-connection | |
run: > | |
curl -H "Authorization: token ${{ secrets.TRIGGER_TOKEN }}" | |
--data '{"event_type": "build-latest"}' | |
https://api.github.com/repos/sakuli/sakuli-docker-remote-win-connection/dispatches | |
- name: Trigger sakuli-openshift-s2i | |
run: > | |
curl -H "Authorization: token ${{ secrets.TRIGGER_TOKEN }}" | |
--data '{"event_type": "build-latest"}' | |
https://api.github.com/repos/sakuli/sakuli-openshift-s2i/dispatches |