suggest strong password #10
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: self-serve deployer | |
on: | |
push: | |
branches: [deploy-prod] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- name: checkout repo+branch | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: install and build server | |
run: | | |
cd backend | |
npm install | |
- name: restart server | |
env: | |
PORT: ${{ secrets.PORT }} | |
MY_SQL_DB_HOST: ${{ secrets.MY_SQL_DB_HOST }} | |
MY_SQL_DB_USER: ${{ secrets.MY_SQL_DB_USER }} | |
MY_SQL_DB_PASSWORD: ${{ secrets.MY_SQL_DB_PASSWORD }} | |
MY_SQL_DB_PORT: ${{ secrets.MY_SQL_DB_PORT }} | |
MY_SQL_DB_DATABASE: ${{ secrets.MY_SQL_DB_DATABASE }} | |
MY_SQL_DB_CONNECTION_LIMIT: ${{ secrets.MY_SQL_DB_CONNECTION_LIMIT }} | |
SOCKET_PATH: ${{ secrets.SOCKET_PATH }} | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
ORIGIN: ${{ secrets.ORIGIN }} | |
run: | | |
cd backend | |
npm run start:prod |