diff --git a/.env b/.env index 9940dd91..232f293e 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -SPONSOR=bed-is-all-my-pleasure \ No newline at end of file +SPONSOR=tested diff --git a/.github/workflows/porter_coal_station_origin.yml b/.github/workflows/porter_coal_station_origin.yml deleted file mode 100644 index e3acf7c3..00000000 --- a/.github/workflows/porter_coal_station_origin.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: coal-station-origin - cluster: "2445" - host: https://dashboard.getporter.dev - namespace: default - project: "6658" - tag: ${{ steps.vars.outputs.sha_short }} - token: ${{ secrets.PORTER_TOKEN_6658 }} 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_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_hello-world.yml b/.github/workflows/porter_stack_hello-world.yml new file mode 100644 index 00000000..7b48f0b1 --- /dev/null +++ b/.github/workflows/porter_stack_hello-world.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - master +name: Deploy to hello-world +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: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: exec porter apply -f ./porter.yaml + env: + PORTER_CLUSTER: "3456" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "10607" + PORTER_STACK_NAME: hello-world + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_10607_3456 }} diff --git a/.github/workflows/porter_stack_next-test.yml b/.github/workflows/porter_stack_next-test.yml new file mode 100644 index 00000000..c9cccf51 --- /dev/null +++ b/.github/workflows/porter_stack_next-test.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - master +name: Deploy to next-test +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: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: exec porter apply -f ./porter.yaml + env: + PORTER_CLUSTER: "3269" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "9805" + PORTER_STACK_NAME: next-test + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_9805_3269 }} diff --git a/.github/workflows/porter_stack_porter-agent.yml b/.github/workflows/porter_stack_porter-agent.yml new file mode 100644 index 00000000..43317434 --- /dev/null +++ b/.github/workflows/porter_stack_porter-agent.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - master +name: Deploy to porter-agent +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: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: exec porter apply -f ./porter.yaml + env: + PORTER_CLUSTER: "2918" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "8014" + PORTER_STACK_NAME: porter-agent + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_8014_2918 }} diff --git a/.github/workflows/porter_stack_porter-tetris-app.yml b/.github/workflows/porter_stack_porter-tetris-app.yml new file mode 100644 index 00000000..3f8111a3 --- /dev/null +++ b/.github/workflows/porter_stack_porter-tetris-app.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - master +name: Deploy to porter-tetris-app +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: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: exec porter apply -f porter.yaml + env: + PORTER_CLUSTER: "3580" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "11384" + PORTER_STACK_NAME: porter-tetris-app + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_11384_3580 }} diff --git a/.github/workflows/porter_stack_porter-tetris.yml b/.github/workflows/porter_stack_porter-tetris.yml new file mode 100644 index 00000000..1406f7cb --- /dev/null +++ b/.github/workflows/porter_stack_porter-tetris.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - master +name: Deploy to porter-tetris +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: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: exec porter apply -f porter.yaml + env: + PORTER_CLUSTER: "3580" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "11384" + PORTER_STACK_NAME: porter-tetris + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_11384_3580 }} diff --git a/.github/workflows/porter_stack_test-deploy.yml b/.github/workflows/porter_stack_test-deploy.yml new file mode 100644 index 00000000..cba96db2 --- /dev/null +++ b/.github/workflows/porter_stack_test-deploy.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - master +name: Deploy to test-deploy +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: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: porter apply -f ./porter.yaml + env: + PORTER_CLUSTER: "11" + PORTER_HOST: https://dashboard.internal-tools.porter.run + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "8" + PORTER_STACK_NAME: test-deploy + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_8_11 }} diff --git a/.github/workflows/porter_stack_testasdfasdfasdf.yml b/.github/workflows/porter_stack_testasdfasdfasdf.yml new file mode 100644 index 00000000..36f38f77 --- /dev/null +++ b/.github/workflows/porter_stack_testasdfasdfasdf.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - master +name: Deploy to testasdfasdfasdf +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: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: porter apply -f ./porter.yaml + env: + PORTER_CLUSTER: "37" + PORTER_HOST: https://dashboard.internal-tools.porter.run + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "18" + PORTER_STACK_NAME: testasdfasdfasdf + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_18_37 }} diff --git a/.github/workflows/porter_stack_tetris-app.yml b/.github/workflows/porter_stack_tetris-app.yml new file mode 100644 index 00000000..482e15dc --- /dev/null +++ b/.github/workflows/porter_stack_tetris-app.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - master +name: Deploy to tetris-app +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: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + - name: Deploy stack + timeout-minutes: 30 + run: exec porter apply -f porter.yaml + env: + PORTER_CLUSTER: "3575" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "11384" + PORTER_STACK_NAME: tetris-app + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_11384_3575 }} 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/index.js b/index.js index 4fcf9827..8b95d4ba 100644 --- a/index.js +++ b/index.js @@ -8,4 +8,4 @@ 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 all by', sponsor + ", of course.")); diff --git a/porter.yaml b/porter.yaml index 9952f4bc..4d2231d4 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: ls diff --git a/test.txt b/test.txt new file mode 100644 index 00000000..ab6c24d4 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +"Test workflow"