Skip to content

Commit

Permalink
chore: add a GitHub action for validating Kong Gateway images
Browse files Browse the repository at this point in the history
This commit adds a workflow with two inputs to supply the Kong Gateway
image and decK branch to test against.
  • Loading branch information
mikefero authored Jul 5, 2023
1 parent 508f7d7 commit a1cbe89
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/validate-kong-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Validate Kong Gateway Release
concurrency:
group: ${{ github.workflow }}
on:
workflow_dispatch:
inputs:
kong_image:
description: 'Kong Gateway Docker Image'
required: true
default: 'kong/kong-gateway-dev:latest'
branch:
description: 'decK Branch'
required: true
default: 'main'
jobs:
integration:
name: "Validating Kong Gateway ${{ inputs.kong_image }} against decK branch ${{ inputs.branch }}"
env:
KONG_ANONYMOUS_REPORTS: "off"
KONG_IMAGE: ${{ inputs.kong_image }}
runs-on: ubuntu-latest
steps:
- name: Execution Information
run: |
echo "Kong Gateway Image = ${{ inputs.kong_image }}"
echo "decK Branch = ${{ inputs.branch }}"
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}
- name: Setup Kong
run: make setup-kong
- name: Run integration tests
run: make test-integration

0 comments on commit a1cbe89

Please sign in to comment.