Skip to content

Commit

Permalink
ci: use license action (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Nov 9, 2023
1 parent a1015b6 commit 14f3ed3
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 13 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/integration-enterprise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,29 @@ jobs:
env:
KONG_ANONYMOUS_REPORTS: "off"
KONG_IMAGE: ${{ matrix.kong_image }}
KONG_LICENSE_DATA: ${{ secrets.KONG_LICENSE_DATA }}

runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_PULL_USERNAME}}
password: ${{secrets.DOCKERHUB_PULL_TOKEN}}
- uses: Kong/kong-license@master
id: license
with:
password: ${{ secrets.PULP_PASSWORD }}
- name: Setup Kong
env:
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }}
run: make setup-kong-ee
- name: Run integration tests
env:
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }}
run: make test-integration
4 changes: 2 additions & 2 deletions .github/workflows/integration-konnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
DECK_KONNECT_TOKEN : ${{ secrets.DECK_KONNECT_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: Checkout repository
uses: actions/checkout@v4
- name: Run integration tests
run: make test-integration
4 changes: 2 additions & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
KONG_IMAGE: ${{ matrix.kong_image }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Kong
run: make setup-kong
- name: Run integration tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v3.7.0
- name: Verify Codegen
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/validate-kong-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,29 @@ jobs:
env:
KONG_ANONYMOUS_REPORTS: "off"
KONG_IMAGE: ${{ inputs.kong_image }}
KONG_LICENSE_DATA: ${{ secrets.KONG_LICENSE_DATA }}
runs-on: ubuntu-latest
steps:
- name: Execution Information
run: |
echo "Kong Gateway Image = ${{ inputs.kong_image }}"
echo "decK Branch = ${{ inputs.branch }}"
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: Checkout repository
uses: actions/checkout@v4
- uses: Kong/kong-license@master
id: license
with:
ref: ${{ inputs.branch }}
password: ${{ secrets.PULP_PASSWORD }}
- name: Setup Kong
env:
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }}
run: make setup-kong-ee
- name: Run integration tests
env:
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }}
run: make test-integration

0 comments on commit 14f3ed3

Please sign in to comment.