Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/porter_gin_example_api_token_2_production.yml
Original file line number Diff line number Diff line change
@@ -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 }}
19 changes: 19 additions & 0 deletions porter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: v1
resources:
- name: web
source:
name: web
config:
build:
method: docker
context: .
dockerfile: ./subpath/Dockerfile
values:
container:
command: web
port: 8080
env:
normal:
TESTING: 'true'
TESTING2: 'TRUE'
TESTING3: 'false'