fix: npm cache permissions #268
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/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
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 |