manual-deploy #62
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: Manual Deploy | |
on: | |
repository_dispatch: | |
types: manual-deploy | |
jobs: | |
deploy: | |
name: Manual Deployment | |
runs-on: amd64-runner | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
- name: Use Node.js (.nvmrc) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: Install deps | |
run: yarn | |
- name: Prepare | |
run: yarn nx run-many --target=prepare --parallel --all | |
env: | |
ONEPASSWORD_TOKEN: ${{ secrets.ONEPASSWORD_TOKEN }} | |
ONEPASSWORD_SERVER_URL: ${{ secrets.ONEPASSWORD_SERVER_URL }} | |
ONEPASSWORD_VAULT_ID: ${{ secrets.ONEPASSWORD_VAULT_ID }} | |
- name: Install jsonnet plugins | |
run: jb install | |
- name: Deploy apps | |
run: yarn nx run-many --target=deploy --parallel --projects=${{ github.event.client_payload.projects }} --exclude=docker-registry,k8s,openvpn,pihole --verbose | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODE_COV_TOKEN }} | |
ONEPASSWORD_TOKEN: ${{ secrets.ONEPASSWORD_TOKEN }} | |
ONEPASSWORD_SERVER_URL: ${{ secrets.ONEPASSWORD_SERVER_URL }} | |
ONEPASSWORD_VAULT_ID: ${{ secrets.ONEPASSWORD_VAULT_ID }} | |
NODE_ENV: production | |
- name: Remove disk pressure taint | |
run: ./scripts/bin/remove-evicted-pods.sh || true |