Skip to content

Commit

Permalink
move-to-prod porter cloud (#4499)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmcshane authored Apr 3, 2024
1 parent 2c63366 commit 689ce63
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/porter_stack_porter-sandbox.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"on":
on:
push:
branches:
- master
name: Deploy to porter-sandbox
tags:
- production
name: Deploy to porter-cloud
jobs:
build-go:
runs-on: ubuntu-latest
Expand All @@ -19,36 +19,36 @@ jobs:
uses: actions/checkout@v3
- name: build-npm
uses: ./.github/actions/build-npm

porter-deploy:
runs-on: ubuntu-latest
needs: [build-go, build-npm]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get Go Binaries
uses: actions/download-artifact@v3
with:
name: go-binaries
path: bin/
- name: Get NPM static files
uses: actions/download-artifact@v3
with:
name: npm-static-files
path: build/
- name: Set Github tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Setup porter
uses: porter-dev/[email protected]
- name: Deploy stack
timeout-minutes: 30
run: exec porter apply -f ./porter.yaml --wait
env:
PORTER_CLUSTER: "11"
PORTER_HOST: https://dashboard.internal-tools.porter.run
PORTER_PR_NUMBER: ${{ github.event.number }}
PORTER_PROJECT: "8"
PORTER_STACK_NAME: porter-sandbox
PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
PORTER_TOKEN: ${{ secrets.PORTER_STACK_8_11 }}
- name: Checkout code
uses: actions/checkout@v3
- name: Get Go Binaries
uses: actions/download-artifact@v3
with:
name: go-binaries
path: bin/
- name: Get NPM static files
uses: actions/download-artifact@v3
with:
name: npm-static-files
path: build/
- name: Set Github tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Setup porter
uses: porter-dev/[email protected]
- name: Deploy stack
timeout-minutes: 30
run: exec porter apply -f ./porter.yaml --wait
env:
PORTER_CLUSTER: "11"
PORTER_HOST: https://dashboard.internal-tools.porter.run
PORTER_PR_NUMBER: ${{ github.event.number }}
PORTER_PROJECT: "8"
PORTER_STACK_NAME: porter-sandbox
PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
PORTER_TOKEN: ${{ secrets.PORTER_STACK_8_11 }}

0 comments on commit 689ce63

Please sign in to comment.