Feat: title에서 자신의 userId에 해당하는 항목만 수정 및 삭제 가능하도록 권한 체크 추가 #13
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: Deploy to cloudtype | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Connect deploy key | |
uses: cloudtype-github-actions/connect@v1 | |
with: | |
token: ${{ secrets.CLOUDTYPE_TOKEN }} | |
ghtoken: ${{ secrets.GHP_TOKEN }} | |
- name: Deploy | |
uses: cloudtype-github-actions/deploy@v1 | |
with: | |
token: ${{ secrets.CLOUDTYPE_TOKEN }} | |
project: suhye0n/passify | |
stage: main | |
yaml: | | |
name: passify-server-manager | |
app: node@18 | |
options: | |
ports: "3000" | |
install: npm i | |
build: npm run build | |
start: npm run start | |
env: | |
- name: PORT | |
value: "3000" | |
- name: DB_USER | |
value: root | |
- name: DB_PASSWORD | |
value: sh011121 | |
- name: DB_HOST | |
value: svc.sel4.cloudtype.app | |
- name: DB_PORT | |
value: "30241" | |
- name: DB_DATABASE | |
value: passify | |
- name: SECRET_KEY | |
value: secretKey | |
- name: LOG_FORMAT | |
value: dev | |
- name: LOG_DIR | |
value: ../logs | |
- name: ORIGIN | |
value: "*" | |
- name: CREDENTIALS | |
value: "true" | |
buildenv: [] | |
context: | |
git: | |
url: git@github.com:${{ github.repository }}.git | |
ref: ${{ github.ref }} |