diff --git a/.github/workflows/liara.yml b/.github/workflows/liara.yml index 9149ffaf..09ceff8a 100644 --- a/.github/workflows/liara.yml +++ b/.github/workflows/liara.yml @@ -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 diff --git a/pages/cicd/github.js b/pages/cicd/github.js index 3f0dca13..deef9ffa 100644 --- a/pages/cicd/github.js +++ b/pages/cicd/github.js @@ -64,7 +64,7 @@ export default () => ( on: push: branches: - - master + - main jobs: deploy: runs-on: ubuntu-latest @@ -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 `} @@ -153,7 +153,7 @@ jobs: on: push: branches: - - master + - main - test - staging @@ -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 `} diff --git a/pages/cicd/gitlab.js b/pages/cicd/gitlab.js index 84312258..e89aa5af 100644 --- a/pages/cicd/gitlab.js +++ b/pages/cicd/gitlab.js @@ -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 `}