Create porter_test.yml file

This commit is contained in:
porter-deployment-app[bot] 2022-03-22 13:08:24 +00:00 committed by GitHub
parent 4aaa93bd06
commit e9a8281738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/porter_test.yml vendored Normal file
View File

@ -0,0 +1,25 @@
"on":
push:
branches:
- main
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: test
cluster: "1689"
host: https://dashboard.getporter.dev
namespace: default
project: "2643"
tag: ${{ steps.vars.outputs.sha_short }}
token: ${{ secrets.PORTER_TOKEN_2643 }}