From c9a5d8d0de5610190b2c950edb03354824228245 Mon Sep 17 00:00:00 2001 From: Alexander Belanger Date: Mon, 13 Dec 2021 09:44:45 -0500 Subject: [PATCH 1/7] add porter.yaml --- porter.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 porter.yaml diff --git a/porter.yaml b/porter.yaml new file mode 100644 index 0000000..cab7911 --- /dev/null +++ b/porter.yaml @@ -0,0 +1,14 @@ +version: v1 +resources: +- name: web + source: + name: web + config: + build: + method: docker + context: . + dockerfile: ./subpath/Dockerfile + values: + container: + command: web + port: 8080 From e50ee56a587ca23a563b7f3d0f166602cf0cb42a Mon Sep 17 00:00:00 2001 From: Alexander Belanger Date: Mon, 13 Dec 2021 09:51:45 -0500 Subject: [PATCH 2/7] update porter.yaml --- porter.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/porter.yaml b/porter.yaml index cab7911..f422bb6 100644 --- a/porter.yaml +++ b/porter.yaml @@ -12,3 +12,6 @@ resources: container: command: web port: 8080 + env: + normal: + TESTING: 'true' From 4beea89eb6ff56527ffd047b2faac0dc3ebc1396 Mon Sep 17 00:00:00 2001 From: abelanger5 Date: Mon, 13 Dec 2021 12:57:51 -0500 Subject: [PATCH 3/7] Delete porter_preview_env.yml --- .github/workflows/porter_preview_env.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/porter_preview_env.yml diff --git a/.github/workflows/porter_preview_env.yml b/.github/workflows/porter_preview_env.yml deleted file mode 100644 index 0d14d3c..0000000 --- a/.github/workflows/porter_preview_env.yml +++ /dev/null @@ -1,22 +0,0 @@ -"on": -- pull_request -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@master - with: - action_id: ${{ github.run_id }} - branch: ${{ github.head_ref }} - cluster: "5" - host: https://dashboard.dev.getporter.dev - installation_id: "21273036" - namespace: pr-${{ github.event.pull_request.number }}-gin-example - pr_id: ${{ github.event.pull_request.number }} - project: "3" - token: ${{ secrets.PORTER_TOKEN_3 }} From 8368cb06608f899def06ca74e16441f67389bd4d Mon Sep 17 00:00:00 2001 From: Alexander Belanger Date: Mon, 13 Dec 2021 13:24:27 -0500 Subject: [PATCH 4/7] add back --- .github/workflows/porter_preview_env.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/porter_preview_env.yml diff --git a/.github/workflows/porter_preview_env.yml b/.github/workflows/porter_preview_env.yml new file mode 100644 index 0000000..0d14d3c --- /dev/null +++ b/.github/workflows/porter_preview_env.yml @@ -0,0 +1,22 @@ +"on": +- pull_request +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@master + with: + action_id: ${{ github.run_id }} + branch: ${{ github.head_ref }} + cluster: "5" + host: https://dashboard.dev.getporter.dev + installation_id: "21273036" + namespace: pr-${{ github.event.pull_request.number }}-gin-example + pr_id: ${{ github.event.pull_request.number }} + project: "3" + token: ${{ secrets.PORTER_TOKEN_3 }} From 836581bf783ee99bb8f512e95b998878ce03daf1 Mon Sep 17 00:00:00 2001 From: Alexander Belanger Date: Mon, 13 Dec 2021 13:28:22 -0500 Subject: [PATCH 5/7] making a change --- porter.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/porter.yaml b/porter.yaml index f422bb6..259c249 100644 --- a/porter.yaml +++ b/porter.yaml @@ -15,3 +15,4 @@ resources: env: normal: TESTING: 'true' + TESTING2: 'TRUE' From dd9653c586113741ca68045b788938b19469fbb6 Mon Sep 17 00:00:00 2001 From: Alexander Belanger Date: Mon, 13 Dec 2021 14:33:25 -0500 Subject: [PATCH 6/7] another deployment --- porter.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/porter.yaml b/porter.yaml index 259c249..674ed39 100644 --- a/porter.yaml +++ b/porter.yaml @@ -16,3 +16,4 @@ resources: normal: TESTING: 'true' TESTING2: 'TRUE' + TESTING3: 'false' From 3b3d3db7bbdc8c6197baf3d0d5f99c659da03ae2 Mon Sep 17 00:00:00 2001 From: "porter-staging[bot]" <87211919+porter-staging[bot]@users.noreply.github.com> Date: Wed, 1 Jun 2022 17:15:26 +0000 Subject: [PATCH 7/7] Create porter_gin_example_api_token_2_production.yml file --- ...ter_gin_example_api_token_2_production.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/porter_gin_example_api_token_2_production.yml diff --git a/.github/workflows/porter_gin_example_api_token_2_production.yml b/.github/workflows/porter_gin_example_api_token_2_production.yml new file mode 100644 index 0000000..a08485d --- /dev/null +++ b/.github/workflows/porter_gin_example_api_token_2_production.yml @@ -0,0 +1,25 @@ +"on": + push: + branches: + - subpath +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: gin-example-api-token-2 + cluster: "83" + host: https://dashboard.staging.getporter.dev + namespace: default + project: "72" + tag: ${{ steps.vars.outputs.sha_short }} + token: ${{ secrets.PORTER_TOKEN_PRODUCTION_72 }}