Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated deck commands #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
8 changes: 3 additions & 5 deletions .github/workflows/actions_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Generate Kong declarative configuration from Spec
run: inso generate config openapi/bankong-v1.3.0.yaml --type declarative > bankong-deck2.x.yaml
- name: Convert configuration for 3.0
run: deck convert --from kong-gateway-2.x --to kong-gateway-3.x --input-file bankong-deck2.x.yaml --output-file bankong-deck3.x.yaml
run: deck file openapi2kong --spec openapi/bankong-v1.3.0.yaml --output-file bankong-deck3.x.yaml
- name: fix temporary regex issue
run: sed 's/\\//' bankong-deck3.x.yaml > bankong-deck.yaml
- name: Validate Kong declarative configuration
run: deck validate -s bankong-deck.yaml
run: deck gateway validate bankong-deck.yaml
- name: Deploy declarative config
run: deck sync -s bankong-deck.yaml -s deck/consumers -s deck/plugins
run: deck gateway sync bankong-deck.yaml deck/consumers deck/plugins
- name: Publish Spec to Dev Portal
run: cd ./openapi && http --check-status --ignore-stdin PUT :8001/default/files/specs/bankong-v1.3.0.yaml contents=@bankong-v1.3.0.yaml

Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/actions_push_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
- name: Create OpenAPI Specification From Insomnia
run: inso export spec spc_ca6fc --output openapi/bankong-openapi.yaml --ci
- name: Generate Kong declarative configuration from Spec
run: inso generate config openapi/bankong-openapi.yaml --type declarative > bankong-deck2.x.yaml
- name: Convert configuration for 3.0
run: deck convert --from kong-gateway-2.x --to kong-gateway-3.x --input-file bankong-deck2.x.yaml --output-file bankong-deck3.x.yaml
run: deck file openapi2kong --spec openapi/bankong-openapi.yaml --output-file bangkong-deck3.x.yaml
- name: Validate Kong declarative configuration
run: deck validate -s bankong-deck3.x.yaml

run: deck gateway validate bankong-deck3.x.yaml
Loading