curl -u [owner] \
https://api.github.com/repos/[owner]/[repository]/collaborators/[username]/permission
- admin: read, write, admin
- push: read, write ( default when add user as a conaborator )
- pull: read
| steps: | |
| - name: 'docker/compose:1.29.2' | |
| args: | |
| - build | |
| id: build-images | |
| - name: gcr.io/cloud-builders/docker | |
| args: | |
| - '-c' | |
| - >- | |
| docker push $$APP_CACHE_DOCKER_IMAGE:$$RELEASE_IMAGE_VERSION && docker |
| #!/bin/bash | |
| # Set App name | |
| APP_NAME=node_server | |
| # Get information by app name with pm2 | |
| pm2 describe $APP_NAME > /dev/null | |
| # Save data of previous shell to here | |
| IS_EXIST_BY_APP_NAME=$? |
curl -u [owner] \
https://api.github.com/repos/[owner]/[repository]/collaborators/[username]/permission
| #!/bin/bash | |
| set -e # stop on error | |
| echo get last commit | |
| git pull | |
| echo add dist folder | |
| git add -f dist | |
| echo commit changes | |
| git commit -m "deploy to gh-pages" | |
| echo push to remote target branch (gh-pages is target branch) |