diff --git a/.github/workflows/porter_app_js-test-app_1.yml b/.github/workflows/porter_app_js-test-app_1.yml new file mode 100644 index 00000000..c0d5c7f9 --- /dev/null +++ b/.github/workflows/porter_app_js-test-app_1.yml @@ -0,0 +1,29 @@ +"on": + push: + branches: + - master +name: Deploy to js-test-app +jobs: + porter-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set Github tag + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: exec porter apply + env: + PORTER_APP_NAME: js-test-app + PORTER_CLUSTER: "1" + PORTER_DEPLOYMENT_TARGET_ID: 1fb3334c-7e69-4a89-850e-7b44dda6b87a + PORTER_HOST: https://georgez98.withporter.run + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "1" + PORTER_REPO_NAME: ${{ github.event.repository.name }} + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_APP_1_1 }} diff --git a/.github/workflows/porter_app_test-js-app_10.yml b/.github/workflows/porter_app_test-js-app_10.yml new file mode 100644 index 00000000..091764d6 --- /dev/null +++ b/.github/workflows/porter_app_test-js-app_10.yml @@ -0,0 +1,29 @@ +"on": + push: + branches: + - master +name: Deploy to test-js-app +jobs: + porter-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set Github tag + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: exec porter apply + env: + PORTER_APP_NAME: test-js-app + PORTER_CLUSTER: "10" + PORTER_DEPLOYMENT_TARGET_ID: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa + PORTER_HOST: https://georgez98.withporter.run + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "10" + PORTER_REPO_NAME: ${{ github.event.repository.name }} + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_APP_10_10 }} diff --git a/.github/workflows/porter_preview_js-test-app_1.yml b/.github/workflows/porter_preview_js-test-app_1.yml new file mode 100644 index 00000000..ef6e5771 --- /dev/null +++ b/.github/workflows/porter_preview_js-test-app_1.yml @@ -0,0 +1,29 @@ +"on": + pull_request: + paths: + - '**' + - '!.github/workflows/porter_**' +name: Deploy to Preview Environment +jobs: + porter-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set Github tag + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Build and deploy preview environment + timeout-minutes: 30 + run: exec porter apply --preview + env: + PORTER_APP_NAME: js-test-app + PORTER_CLUSTER: "1" + PORTER_HOST: https://georgez98.withporter.run + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "1" + PORTER_REPO_NAME: ${{ github.event.repository.name }} + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_APP_1_1 }} diff --git a/.github/workflows/porter_preview_lab-app.yml b/.github/workflows/porter_preview_lab-app.yml deleted file mode 100644 index 2fe49025..00000000 --- a/.github/workflows/porter_preview_lab-app.yml +++ /dev/null @@ -1,35 +0,0 @@ -"on": - pull_request: - branches: - - master - types: - - opened - - synchronize - paths: - - '**' - - '!.github/workflows/porter_**' -name: Deploy to Preview Environment -jobs: - porter-deploy: - runs-on: ubuntu-latest - if: startsWith(github.head_ref, 'feat/') - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Set Github tag - id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - name: Setup porter - uses: porter-dev/setup-porter@v0.1.0 - - name: Build and deploy preview environment - timeout-minutes: 30 - run: exec porter apply -f ./porter.yaml --preview - env: - PORTER_CLUSTER: "3828" - PORTER_HOST: https://dashboard.porter.run - PORTER_PR_NUMBER: ${{ github.event.number }} - PORTER_PROJECT: "12155" - PORTER_REPO_NAME: ${{ github.event.repository.name }} - PORTER_STACK_NAME: lab-app - PORTER_TAG: ${{ steps.vars.outputs.sha_short }} - PORTER_TOKEN: ${{ secrets.PORTER_STACK_12155_3828 }} diff --git a/.github/workflows/porter_stack_js-test-app.yml b/.github/workflows/porter_stack_js-test-app.yml deleted file mode 100644 index 2450904c..00000000 --- a/.github/workflows/porter_stack_js-test-app.yml +++ /dev/null @@ -1,29 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to js-test-app -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Set Github tag - id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - name: Setup porter - uses: porter-dev/setup-porter@v0.1.0 - - name: Deploy stack - timeout-minutes: 30 - run: exec porter apply - env: - PORTER_CLUSTER: "4369" - PORTER_DEPLOYMENT_TARGET_ID: c1b5ee28-b83a-4845-a2b9-efdcdef52d26 - PORTER_HOST: https://dashboard.porter.run - PORTER_PR_NUMBER: ${{ github.event.number }} - PORTER_PROJECT: "13926" - PORTER_REPO_NAME: ${{ github.event.repository.name }} - PORTER_STACK_NAME: js-test-app - PORTER_TAG: ${{ steps.vars.outputs.sha_short }} - PORTER_TOKEN: ${{ secrets.PORTER_STACK_13926_4369 }} diff --git a/.github/workflows/porter_stack_lab-app.yml b/.github/workflows/porter_stack_lab-app.yml deleted file mode 100644 index d770e016..00000000 --- a/.github/workflows/porter_stack_lab-app.yml +++ /dev/null @@ -1,29 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to lab-app -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Set Github tag - id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - name: Setup porter - uses: porter-dev/setup-porter@v0.1.0 - - name: Deploy stack - timeout-minutes: 30 - run: exec porter apply - env: - PORTER_CLUSTER: "3828" - PORTER_DEPLOYMENT_TARGET_ID: b416e8fe-e19a-4468-835c-4ec08ed618cd - PORTER_HOST: https://dashboard.porter.run - PORTER_PR_NUMBER: ${{ github.event.number }} - PORTER_PROJECT: "12155" - PORTER_REPO_NAME: ${{ github.event.repository.name }} - PORTER_STACK_NAME: lab-app - PORTER_TAG: ${{ steps.vars.outputs.sha_short }} - PORTER_TOKEN: ${{ secrets.PORTER_STACK_12155_3828 }} diff --git a/.github/workflows/porter_stack_s29051.yml b/.github/workflows/porter_stack_s29051.yml deleted file mode 100644 index c3d068ce..00000000 --- a/.github/workflows/porter_stack_s29051.yml +++ /dev/null @@ -1,27 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to Porter -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Set Github tag - id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - name: Deploy stack - timeout-minutes: 30 - uses: porter-dev/porter-cli-action@dev - with: - command: apply -f porter.yaml - env: - ENABLE_SENTRY: "false" - PORTER_CLUSTER: "1" - PORTER_HOST: https://ce1e-160-72-72-58.ngrok-free.app - PORTER_PROJECT: "1" - PORTER_STACK_NAME: s29051 - PORTER_TAG: ${{ steps.vars.outputs.sha_short }} - PORTER_TOKEN: ${{ secrets.PORTER_STACK_1_1 }} diff --git a/.github/workflows/porter_stack_twin-app.yml b/.github/workflows/porter_stack_twin-app.yml deleted file mode 100644 index bcbf552a..00000000 --- a/.github/workflows/porter_stack_twin-app.yml +++ /dev/null @@ -1,29 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to twin-app -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Set Github tag - id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - name: Setup porter - uses: porter-dev/setup-porter@v0.1.0 - - name: Deploy stack - timeout-minutes: 30 - run: exec porter apply - env: - PORTER_CLUSTER: "3828" - PORTER_DEPLOYMENT_TARGET_ID: b416e8fe-e19a-4468-835c-4ec08ed618cd - PORTER_HOST: https://dashboard.porter.run - PORTER_PR_NUMBER: ${{ github.event.number }} - PORTER_PROJECT: "12155" - PORTER_REPO_NAME: ${{ github.event.repository.name }} - PORTER_STACK_NAME: twin-app - PORTER_TAG: ${{ steps.vars.outputs.sha_short }} - PORTER_TOKEN: ${{ secrets.PORTER_STACK_12155_3828 }} diff --git a/test.txt b/test.txt index ab6c24d4..bd69226d 100644 --- a/test.txt +++ b/test.txt @@ -1 +1 @@ -"Test workflow" +"Test workflow 1"