|
@@ -1,15 +1,12 @@
|
|
|
on:
|
|
on:
|
|
|
- workflow_run:
|
|
|
|
|
- workflows: ["Deploy Porter to Internal Tooling"]
|
|
|
|
|
- branches: [master]
|
|
|
|
|
- types:
|
|
|
|
|
- - completed
|
|
|
|
|
-name: Release dev cli and run integration tests
|
|
|
|
|
|
|
+ push:
|
|
|
|
|
+ tags:
|
|
|
|
|
+ - dev
|
|
|
|
|
+name: Release dev cli
|
|
|
jobs:
|
|
jobs:
|
|
|
build-linux:
|
|
build-linux:
|
|
|
name: Build Linux binaries
|
|
name: Build Linux binaries
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- name: Checkout code
|
|
- name: Checkout code
|
|
|
uses: actions/checkout@v3
|
|
uses: actions/checkout@v3
|
|
@@ -17,7 +14,7 @@ jobs:
|
|
|
uses: actions/setup-go@v4
|
|
uses: actions/setup-go@v4
|
|
|
with:
|
|
with:
|
|
|
cache: false
|
|
cache: false
|
|
|
- go-version: '1.20.5'
|
|
|
|
|
|
|
+ go-version: "1.20.5"
|
|
|
go-version-file: go.mod
|
|
go-version-file: go.mod
|
|
|
- name: Build Linux binaries
|
|
- name: Build Linux binaries
|
|
|
run: |
|
|
run: |
|
|
@@ -89,19 +86,3 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
docker tag ghcr.io/porter-dev/porter/porter-cli:dev ghcr.io/porter-dev/porter/porter-cli:dev
|
|
docker tag ghcr.io/porter-dev/porter/porter-cli:dev ghcr.io/porter-dev/porter/porter-cli:dev
|
|
|
docker push ghcr.io/porter-dev/porter/porter-cli:dev
|
|
docker push ghcr.io/porter-dev/porter/porter-cli:dev
|
|
|
- run-integration-tests:
|
|
|
|
|
- name: run integration tests to test new build
|
|
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
- needs: build-push-docker-cli
|
|
|
|
|
- steps:
|
|
|
|
|
- - name: Porter app run
|
|
|
|
|
- uses: porter-dev/porter-cli-action@v0.1.0
|
|
|
|
|
- with:
|
|
|
|
|
- command: app run app-integration-tests --job trigger
|
|
|
|
|
- env:
|
|
|
|
|
- PORTER_CLUSTER: "142"
|
|
|
|
|
- PORTER_HOST: https://dashboard.internal-tools.porter.run
|
|
|
|
|
- PORTER_PROJECT: "301"
|
|
|
|
|
- PORTER_TOKEN: ${{ secrets.APP_INTEGRATION_PROJECT_TOKEN }}
|
|
|
|
|
- PORTER_SERVICE: porter
|
|
|
|
|
- PORTER_COMMIT: ${{ github.sha }}
|
|
|