Skip to content

Commit

Permalink
Update ci/cd docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhemrg committed Oct 23, 2023
1 parent d5a6ae0 commit e63677e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/liara.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
env:
LIARA_TOKEN: ${{ secrets.IRAN_API_TOKEN }}
run: |
npm i -g @liara/cli@4
liara deploy --api-token="$LIARA_TOKEN" --detach
npm i -g @liara/cli@5
liara deploy --api-token="$LIARA_TOKEN" --no-app-logs
- name: Sleep for 60 seconds
run: sleep 60
shell: bash
Expand Down
16 changes: 8 additions & 8 deletions pages/cicd/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default () => (
on:
push:
branches:
- master
- main
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -79,8 +79,8 @@ jobs:
LIARA_TOKEN: \${{ secrets.LIARA_API_TOKEN }}\
run: |
npm i -g @liara/cli@4
liara deploy --app="APP_NAME" --api-token="$LIARA_TOKEN" --detach
npm i -g @liara/cli@5
liara deploy --app="APP_NAME" --api-token="$LIARA_TOKEN" --no-app-logs
`}
</Highlight>
<Notice variant="info">
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
on:
push:
branches:
- master
- main
- test
- staging
Expand All @@ -168,18 +168,18 @@ jobs:
node-version: "18"
- name: Install Liara CLI
run: npm i -g @liara/cli@4
run: npm i -g @liara/cli@5
- name: Deploy
env:
LIARA_TOKEN: \${{ secrets.LIARA_API_TOKEN }}
run: |
if [ \${{ github.ref }} == 'refs/heads/master' ]; then
liara deploy --app="my-production-app" --api-token="$LIARA_TOKEN" --port 3000 --detach
liara deploy --app="my-production-app" --api-token="$LIARA_TOKEN" --no-app-logs
elif [ \${{ github.ref }} == 'refs/heads/test' ]; then
liara deploy --app="my-test-app" --api-token="$LIARA_TOKEN" --port 3000 --detach
liara deploy --app="my-test-app" --api-token="$LIARA_TOKEN" --no-app-logs
elif [ \${{ github.ref }} == 'refs/heads/staging' ]; then
liara deploy --app="my-staging-app" --api-token="$LIARA_TOKEN" --port 3000 --detach
liara deploy --app="my-staging-app" --api-token="$LIARA_TOKEN" --no-app-logs
fi
`}
</Highlight>
Expand Down
4 changes: 2 additions & 2 deletions pages/cicd/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ deploy:
only:
- master
script:
- npm i -g @liara/cli@4
- npm i -g @liara/cli@5
- export http_proxy=http://proxy.liara.ir:6666
- liara deploy --app APP_NAME --api-token $TOKEN --detach
- liara deploy --app APP_NAME --api-token $TOKEN --no-app-logs
`}
</Highlight>
<Notice variant="info">
Expand Down

0 comments on commit e63677e

Please sign in to comment.