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 }} diff --git a/porter.yaml b/porter.yaml new file mode 100644 index 0000000..674ed39 --- /dev/null +++ b/porter.yaml @@ -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'