Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sumimakito authored Apr 22, 2024
1 parent 241c224 commit 3d0be40
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,13 @@ services:
&kong-depends_on
kong-db:
condition: service_healthy

kong-gen-cert:
# Using a empty string as the fallback makes this env optional but still fails if not set when used
image: "kong/kong:nightly-ubuntu"
security_opt:
- no-new-privileges:true
command: >-
sh -c "kong hybrid gen_cert /tmp/hybrid/cluster.crt /tmp/hybrid/cluster.key"
volumes:
- "${GITHUB_WORKSPACE:-.}/hybrid:/tmp/hybrid:z"
23 changes: 23 additions & 0 deletions .github/workflows/test_container_perm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test Container Perm

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:

jobs:
test-container-perm:
name: Test Container Perm
runs-on: ubuntu-latest
secrets: inherit
steps:
- name: Test Container Perm
timeout-minutes: 10
working-directory: ${{ github.workspace }}
env:
GATEWAY_IMAGE: ${{ inputs.gateway-image }}
run: |
id
docker compose -f .ci/docker-compose.yml up kong-gen-cert

0 comments on commit 3d0be40

Please sign in to comment.