diff --git a/.env b/.env index 9940dd91..8c73ea16 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ -SPONSOR=bed-is-all-my-pleasure \ No newline at end of file +SPONSOR=tested +HELLO=HELLO diff --git a/.github/workflows/porter_cut_radio_recognize_production.yml b/.github/workflows/porter_cut_radio_recognize_production.yml deleted file mode 100644 index 31a130e8..00000000 --- a/.github/workflows/porter_cut_radio_recognize_production.yml +++ /dev/null @@ -1,25 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to Porter -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2.3.4 - - name: Set Github tag - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - name: Update Porter App - timeout-minutes: 20 - uses: porter-dev/porter-update-action@v0.1.0 - with: - app: cut-radio-recognize - cluster: "108" - host: https://dashboard.staging.getporter.dev - namespace: default - project: "88" - tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_PRODUCTION_88 }} diff --git a/.github/workflows/porter_coal_station_origin.yml b/.github/workflows/porter_deploy_my_app.yml similarity index 64% rename from .github/workflows/porter_coal_station_origin.yml rename to .github/workflows/porter_deploy_my_app.yml index e3acf7c3..c1e450bd 100644 --- a/.github/workflows/porter_coal_station_origin.yml +++ b/.github/workflows/porter_deploy_my_app.yml @@ -8,18 +8,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v3 - name: Set Github tag id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Update Porter App timeout-minutes: 20 uses: porter-dev/porter-update-action@v0.1.0 with: - app: coal-station-origin - cluster: "2445" + app: deploy-my-app + cluster: "2853" host: https://dashboard.getporter.dev namespace: default - project: "6658" + project: "6751" tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_6658 }} + token: ${{ secrets.PORTER_TOKEN_6751 }} diff --git a/.github/workflows/porter_heroku_tetr.yml b/.github/workflows/porter_heroku_tetr.yml deleted file mode 100644 index 531b9585..00000000 --- a/.github/workflows/porter_heroku_tetr.yml +++ /dev/null @@ -1,25 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to Porter -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2.3.4 - - name: Set Github tag - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - name: Update Porter App - timeout-minutes: 20 - uses: porter-dev/porter-update-action@v0.1.0 - with: - app: heroku-tetr - cluster: "41" - host: https://dashboard.staging.getporter.dev - namespace: default - project: "21" - tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_21 }} diff --git a/.github/workflows/porter_preview_env.yml b/.github/workflows/porter_preview_env.yml deleted file mode 100644 index bfc8852b..00000000 --- a/.github/workflows/porter_preview_env.yml +++ /dev/null @@ -1,45 +0,0 @@ -"on": - workflow_dispatch: - inputs: - pr_branch_from: - description: Pull request head branch - required: true - type: string - pr_branch_into: - description: Pull request base branch - required: true - type: string - pr_number: - description: Pull request number - required: true - type: string - pr_title: - description: Pull request title - required: true - type: string -name: Porter Preview Environment -jobs: - porter-preview: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2.3.4 - - name: Create Porter preview env - timeout-minutes: 30 - uses: porter-dev/porter-preview-action@v0.2.1 - with: - action_id: ${{ github.run_id }} - cluster: "1" - host: https://5c24-131-239-192-194.ngrok.io - installation_id: "30668812" - namespace: pr-${{ github.event.inputs.pr_number }}-js-test-app - pr_branch_from: ${{ github.event.inputs.pr_branch_from }} - pr_branch_into: ${{ github.event.inputs.pr_branch_into }} - pr_id: ${{ github.event.inputs.pr_number }} - pr_name: ${{ github.event.inputs.pr_title }} - project: "1" - repo_name: js-test-app - repo_owner: portersupport - token: ${{ secrets.PORTER_PREVIEW_1_1 }} - concurrency: - group: ${{ github.workflow }}-${{ github.event.inputs.pr_number }} diff --git a/.github/workflows/porter_stack_cp3.yml b/.github/workflows/porter_stack_cp3.yml new file mode 100644 index 00000000..a163b6f6 --- /dev/null +++ b/.github/workflows/porter_stack_cp3.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: cp3 + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_digital-footprint.yml b/.github/workflows/porter_stack_digital-footprint.yml new file mode 100644 index 00000000..0ce90c20 --- /dev/null +++ b/.github/workflows/porter_stack_digital-footprint.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: digital-footprint + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_fasdafsdasd.yml b/.github/workflows/porter_stack_fasdafsdasd.yml new file mode 100644 index 00000000..51cc2627 --- /dev/null +++ b/.github/workflows/porter_stack_fasdafsdasd.yml @@ -0,0 +1,26 @@ +"on": + push: + branches: + - sdess09-patch-1 +name: Deploy to fasdafsdasd +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@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "2875" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7887" + PORTER_STACK_NAME: fasdafsdasd + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7887_2875 }} diff --git a/.github/workflows/porter_stack_fasdf.yml b/.github/workflows/porter_stack_fasdf.yml new file mode 100644 index 00000000..a112fd8c --- /dev/null +++ b/.github/workflows/porter_stack_fasdf.yml @@ -0,0 +1,26 @@ +"on": + push: + branches: + - sdess09-patch-1 +name: Deploy to fasdf +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@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "2875" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7887" + PORTER_STACK_NAME: fasdf + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7887_2875 }} diff --git a/.github/workflows/porter_stack_github-test.yml b/.github/workflows/porter_stack_github-test.yml new file mode 100644 index 00000000..82c3d7a5 --- /dev/null +++ b/.github/workflows/porter_stack_github-test.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2699" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "6729" + PORTER_STACK_NAME: github-test + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_6729_2699 }} diff --git a/.github/workflows/porter_stack_hanging-in.yml b/.github/workflows/porter_stack_hanging-in.yml new file mode 100644 index 00000000..e5858681 --- /dev/null +++ b/.github/workflows/porter_stack_hanging-in.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: hanging-in + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_hello-world.yml b/.github/workflows/porter_stack_hello-world.yml new file mode 100644 index 00000000..1d331b35 --- /dev/null +++ b/.github/workflows/porter_stack_hello-world.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: hello-world + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_man-on-the-moon.yml b/.github/workflows/porter_stack_man-on-the-moon.yml new file mode 100644 index 00000000..4bfac815 --- /dev/null +++ b/.github/workflows/porter_stack_man-on-the-moon.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: man-on-the-moon + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_my-academic-sophon-channel.yml b/.github/workflows/porter_stack_my-academic-sophon-channel.yml new file mode 100644 index 00000000..564c01d8 --- /dev/null +++ b/.github/workflows/porter_stack_my-academic-sophon-channel.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: my-academic-sophon-channel + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_ok-to-test.yml b/.github/workflows/porter_stack_ok-to-test.yml new file mode 100644 index 00000000..f28c3647 --- /dev/null +++ b/.github/workflows/porter_stack_ok-to-test.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: ok-to-test + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_pre-deploy-check.yml b/.github/workflows/porter_stack_pre-deploy-check.yml new file mode 100644 index 00000000..f342c9f3 --- /dev/null +++ b/.github/workflows/porter_stack_pre-deploy-check.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: pre-deploy-check + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_sdfa.yml b/.github/workflows/porter_stack_sdfa.yml new file mode 100644 index 00000000..f64b79f4 --- /dev/null +++ b/.github/workflows/porter_stack_sdfa.yml @@ -0,0 +1,26 @@ +"on": + push: + branches: + - sdess09-patch-1 +name: Deploy to sdfa +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@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "11" + PORTER_HOST: https://dashboard.internal-tools.porter.run + PORTER_PROJECT: "8" + PORTER_STACK_NAME: sdfa + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_8_11 }} diff --git a/.github/workflows/porter_stack_test-toggle-nested.yml b/.github/workflows/porter_stack_test-toggle-nested.yml new file mode 100644 index 00000000..f9f662d4 --- /dev/null +++ b/.github/workflows/porter_stack_test-toggle-nested.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: test-toggle-nested + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_test.yml b/.github/workflows/porter_stack_test.yml new file mode 100644 index 00000000..af0533e9 --- /dev/null +++ b/.github/workflows/porter_stack_test.yml @@ -0,0 +1,26 @@ +"on": + push: + branches: + - sdess09-patch-1 +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@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "2875" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7887" + PORTER_STACK_NAME: test + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7887_2875 }} diff --git a/.github/workflows/porter_stack_tester.yml b/.github/workflows/porter_stack_tester.yml new file mode 100644 index 00000000..f34eec47 --- /dev/null +++ b/.github/workflows/porter_stack_tester.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "2861" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7832" + PORTER_STACK_NAME: tester + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7832_2861 }} diff --git a/.github/workflows/porter_stack_testing-it-for-science.yml b/.github/workflows/porter_stack_testing-it-for-science.yml new file mode 100644 index 00000000..5215689f --- /dev/null +++ b/.github/workflows/porter_stack_testing-it-for-science.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "2698" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7224" + PORTER_STACK_NAME: testing-it-for-science + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7224_2698 }} diff --git a/.github/workflows/porter_stack_testinggke.yml b/.github/workflows/porter_stack_testinggke.yml new file mode 100644 index 00000000..3b26575c --- /dev/null +++ b/.github/workflows/porter_stack_testinggke.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f porter.yaml + env: + PORTER_CLUSTER: "2745" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7484" + PORTER_STACK_NAME: testinggke + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7484_2745 }} diff --git a/.github/workflows/porter_stack_tom-cruise.yml b/.github/workflows/porter_stack_tom-cruise.yml new file mode 100644 index 00000000..c943cf34 --- /dev/null +++ b/.github/workflows/porter_stack_tom-cruise.yml @@ -0,0 +1,26 @@ +"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@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "2860" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "7831" + PORTER_STACK_NAME: tom-cruise + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_7831_2860 }} diff --git a/.github/workflows/porter_stefan_test_production.yml b/.github/workflows/porter_stefan_test_production.yml deleted file mode 100644 index f5babe2d..00000000 --- a/.github/workflows/porter_stefan_test_production.yml +++ /dev/null @@ -1,25 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to Porter -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2.3.4 - - name: Set Github tag - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - name: Update Porter App - timeout-minutes: 20 - uses: porter-dev/porter-update-action@v0.1.0 - with: - app: stefan-test - cluster: "120" - host: https://dashboard.staging.getporter.dev - namespace: default - project: "88" - tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_PRODUCTION_88 }} diff --git a/.github/workflows/porter_task_long_ball.yml b/.github/workflows/porter_task_long_ball.yml deleted file mode 100644 index 6707c641..00000000 --- a/.github/workflows/porter_task_long_ball.yml +++ /dev/null @@ -1,25 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to Porter -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2.3.4 - - name: Set Github tag - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - name: Update Porter App - timeout-minutes: 20 - uses: porter-dev/porter-update-action@v0.1.0 - with: - app: task-long-ball - cluster: "41" - host: https://dashboard.staging.getporter.dev - namespace: default - project: "21" - tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_21 }} diff --git a/.github/workflows/porter_tetromino.yml b/.github/workflows/porter_tetromino.yml deleted file mode 100644 index dcd8db49..00000000 --- a/.github/workflows/porter_tetromino.yml +++ /dev/null @@ -1,25 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to Porter -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2.3.4 - - name: Set Github tag - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - name: Update Porter App - timeout-minutes: 20 - uses: porter-dev/porter-update-action@v0.1.0 - with: - app: tetromino - cluster: "41" - host: https://dashboard.staging.getporter.dev - namespace: default - project: "21" - tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_21 }} diff --git a/.github/workflows/porter_this_heroku.yml b/.github/workflows/porter_this_heroku.yml deleted file mode 100644 index 9d59d084..00000000 --- a/.github/workflows/porter_this_heroku.yml +++ /dev/null @@ -1,25 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to Porter -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2.3.4 - - name: Set Github tag - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - name: Update Porter App - timeout-minutes: 20 - uses: porter-dev/porter-update-action@v0.1.0 - with: - app: this-heroku - cluster: "41" - host: https://dashboard.staging.getporter.dev - namespace: default - project: "21" - tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_21 }} diff --git a/.github/workflows/porter_used_to_work.yml b/.github/workflows/porter_used_to_work.yml deleted file mode 100644 index d50d2d44..00000000 --- a/.github/workflows/porter_used_to_work.yml +++ /dev/null @@ -1,25 +0,0 @@ -"on": - push: - branches: - - master -name: Deploy to Porter -jobs: - porter-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2.3.4 - - name: Set Github tag - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - name: Update Porter App - timeout-minutes: 20 - uses: porter-dev/porter-update-action@v0.1.0 - with: - app: used-to-work - cluster: "41" - host: https://dashboard.staging.getporter.dev - namespace: default - project: "21" - tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_21 }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..472987d5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +# Use the lightweight alpine base image +FROM alpine:latest + +# Set the entrypoint to the 'env' command which will print environment variables +ENTRYPOINT [ "env" ] diff --git a/index.js b/index.js index 4fcf9827..0aad01db 100644 --- a/index.js +++ b/index.js @@ -8,4 +8,5 @@ app.get('/', (req, res) => { }); var sponsor = process.env.SPONSOR || "unsponsored"; -app.listen(3000, () => console.log('Tetris app listening on port 3000! Brought to you by', sponsor + ", of course.")); \ No newline at end of file +app.listen(process.env.PORT || 3000, () => console.log('Tetris app listening on port 3000! Brought to you by', sponsor + ", of course.")); +//dasfasdfasdfasdfasdf diff --git a/porter.yaml b/porter.yaml index 9952f4bc..55b3d91c 100644 --- a/porter.yaml +++ b/porter.yaml @@ -1,15 +1,5 @@ -version: v1 -resources: -- name: web - source: - name: web - config: - build: - method: pack - builder: heroku/buildpacks:20 - values: - ingress: - enabled: false - container: - command: node index.js - port: 3000 +apps: + web: + run: node index.js +release: + run: printenv