diff --git a/.github/workflows/porter-app-1-horsepaste-1.yml b/.github/workflows/porter-app-1-horsepaste-1.yml index 7a80150..ce50f8c 100644 --- a/.github/workflows/porter-app-1-horsepaste-1.yml +++ b/.github/workflows/porter-app-1-horsepaste-1.yml @@ -20,7 +20,7 @@ jobs: env: PORTER_APP_NAME: horsepaste-1 PORTER_CLUSTER: "1" - PORTER_DEPLOYMENT_TARGET_ID: 70fb41ff-1e9b-4650-a99e-5ad64a221c3b + PORTER_DEPLOYMENT_TARGET_ID: 8a66164a-0528-4631-bdd2-0734464ea580 PORTER_HOST: https://jess.withporter.run PORTER_PROJECT: "1" PORTER_TAG: ${{ steps.vars.outputs.sha_short }} diff --git a/.github/workflows/porter-app-1-horsepaste.yml b/.github/workflows/porter-app-1-horsepaste.yml index cdf1b38..d0f2791 100644 --- a/.github/workflows/porter-app-1-horsepaste.yml +++ b/.github/workflows/porter-app-1-horsepaste.yml @@ -20,7 +20,7 @@ jobs: env: PORTER_APP_NAME: horsepaste PORTER_CLUSTER: "1" - PORTER_DEPLOYMENT_TARGET_ID: ddf8cf9f-76bf-41cd-8ed6-cf32ce8121b8 + PORTER_DEPLOYMENT_TARGET_ID: 09e0eddf-35e9-4ac1-86dc-9a819917db32 PORTER_HOST: https://jess.withporter.run PORTER_PROJECT: "1" PORTER_TAG: ${{ steps.vars.outputs.sha_short }} diff --git a/.github/workflows/porter-app-2-horsepaste.yml b/.github/workflows/porter-app-2-horsepaste.yml index 9d8f985..b1bd032 100644 --- a/.github/workflows/porter-app-2-horsepaste.yml +++ b/.github/workflows/porter-app-2-horsepaste.yml @@ -20,8 +20,8 @@ jobs: env: PORTER_APP_NAME: horsepaste PORTER_CLUSTER: "2" - PORTER_DEPLOYMENT_TARGET_ID: c3572103-ec73-4247-8a43-89ac1436bb4a + PORTER_DEPLOYMENT_TARGET_ID: c9582b7e-de75-4e1d-b304-e82813e5951e PORTER_HOST: https://jess.withporter.run - PORTER_PROJECT: "1" + PORTER_PROJECT: "2" PORTER_TAG: ${{ steps.vars.outputs.sha_short }} - PORTER_TOKEN: ${{ secrets.PORTER_APP_1_1211733246 }} + PORTER_TOKEN: ${{ secrets.PORTER_APP_2_1 }} diff --git a/.github/workflows/porter-app-4-horsepaste-1.yml b/.github/workflows/porter-app-4-horsepaste-1.yml new file mode 100644 index 0000000..109e7c9 --- /dev/null +++ b/.github/workflows/porter-app-4-horsepaste-1.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - main +name: Deploy to horsepaste-1 +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: porter apply + env: + PORTER_APP_NAME: horsepaste-1 + PORTER_CLUSTER: "4" + PORTER_DEPLOYMENT_TARGET_ID: f4a76a11-470d-4ec8-b59d-2a9820e4ab2a + PORTER_HOST: https://jess.withporter.run + PORTER_PROJECT: "1" + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_APP_1_6 }} diff --git a/.github/workflows/porter-app-4-horsepaste.yml b/.github/workflows/porter-app-4-horsepaste.yml new file mode 100644 index 0000000..0a0545d --- /dev/null +++ b/.github/workflows/porter-app-4-horsepaste.yml @@ -0,0 +1,27 @@ +"on": + push: + branches: + - main +name: Deploy to horsepaste +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: porter apply + env: + PORTER_APP_NAME: horsepaste + PORTER_CLUSTER: "4" + PORTER_DEPLOYMENT_TARGET_ID: f4a76a11-470d-4ec8-b59d-2a9820e4ab2a + PORTER_HOST: https://jess.withporter.run + PORTER_PROJECT: "1" + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_APP_1_4 }} diff --git a/.github/workflows/porter_preview_horsepaste-1_1.yml b/.github/workflows/porter_preview_horsepaste-1_1.yml new file mode 100644 index 0000000..7c280de --- /dev/null +++ b/.github/workflows/porter_preview_horsepaste-1_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 -f ./porter.yaml --preview + env: + PORTER_APP_NAME: horsepaste-1 + PORTER_CLUSTER: "1" + PORTER_HOST: https://jess.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 }}