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

fix(scripts): fix update-copyright in venv and remove unused repos #12413

Closed
wants to merge 114 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
8d59ac2
feat(opentelemetry): make endpoint field referenceable (#11220)
ms2008 Jul 21, 2023
f951672
fix(core): Add a new parameter `worker_event_max_payload` to kong.con…
liverpool8056 Jul 21, 2023
107da0a
fix(cmd): `kong vault get` doesn't work in dbless mode (#11127)
catbro666 Jul 24, 2023
9a799dc
chore(ci): upgrade test should use the latest bin/kong in NEW_CONTAIN…
catbro666 Jul 24, 2023
f59d23b
chore(wasm): update ffi binding module name (#11253)
gszr Jul 24, 2023
b773c13
fix(admin-gui): add basic kong manager statistics to phone home loggi…
nekolab Jul 24, 2023
80a3fb9
fix(buffered): handle if-match headers correctly (#11275)
chronolaw Jul 25, 2023
60ea28c
feat(router): enable flavor `expressions` in stream subsystem (#11071)
chronolaw Jul 25, 2023
11f026b
fix(lua-cjson): handle the large string correctly (#11281)
ADD-SP Jul 26, 2023
e9698f4
fix(cmd): remove the non-referencable configuration field restriction…
catbro666 Jul 26, 2023
075b6e1
chore(build): do not download wasm runtime unless requested
flrgh Jul 24, 2023
8efbe84
fix(build): use the correct checksum for nfpm arm64
flrgh Jul 24, 2023
5364627
feat(build): add wasmx to arm64 build matrix (#11290)
team-gateway-bot Jul 27, 2023
2c8a558
fix(vaults): refactor vault pdk and vault ttl code
jschmid1 Jul 25, 2023
9727c6c
tests(vaults): fix failing test using prefix
samugi Jul 26, 2023
1ad5e3c
fix(vaults): fixes to vault in cli mode
jschmid1 Jul 26, 2023
baeb44b
tests(dbless): fix flaky test (#11292)
team-gateway-bot Jul 27, 2023
26b1afd
chore(ci): re-use cache key from build workflow (#11299)
flrgh Jul 27, 2023
fd171d5
fix(build): add default condition to platform select() (#11310)
team-gateway-bot Jul 27, 2023
8cc0d5d
docs(changelog): add 3.4.0 known issues (#11319)
team-gateway-bot Jul 28, 2023
9e3aeb5
feat(reports): add anonymous reports for Wasm filter usage (#11314)
team-gateway-bot Jul 28, 2023
3953852
chore(deps): pin kong-manager to v3.4.0.0
sumimakito Jul 28, 2023
3221be6
tests(wasm): escape the prefix in case it contains special characters…
catbro666 Jul 28, 2023
c6e4e59
revert(api): remove /plugins/schema/:name (#11313)
team-gateway-bot Jul 28, 2023
23099b7
fix(wasm): validate filters in all persistence modes (#11288)
team-gateway-bot Jul 28, 2023
6e86cd4
feat(balancer): support upstream host_header and router preserve_host…
team-gateway-bot Jul 29, 2023
3e9f64e
fix(admin-gui): make admin_gui_ssl_cert_key sensitive (#11332) (#11333)
nekolab Jul 31, 2023
4546471
chore(deps): pin ngx_wasm_module (#11323)
flrgh Jul 31, 2023
fff578a
docs(admin-api): add filter chains to OpenAPI spec
team-gateway-bot Aug 3, 2023
106bded
chore: update changelog in preparation for 3.4
jschmid1 Aug 9, 2023
efdb204
chore: restore scripts/release-lib.sh to 3.4
jschmid1 Aug 9, 2023
d6f9838
chore(scripts): make scripts/update-copyright work with all Luas, har…
kikito Aug 9, 2023
03a1dc1
docs(COPYRIGHT): update copyright info
kikito Aug 9, 2023
8e5312b
chore(version): bump versions to 3.4.1 (#11396)
kikito Aug 11, 2023
ecb45a0
chore(*): deprecate centos-7 packages (#11359)
curiositycasualty Aug 14, 2023
3e8f501
feat(build): cross compile rpm platforms
fffonion Jul 31, 2023
77dd5f0
feat(cd): release rhel9 and aws2023 arm64 artifacts
fffonion Jul 31, 2023
39c06f6
chore(cd): bump git to 2.41.0 to avoid cache issue
fffonion Aug 1, 2023
4fed554
fix(cd): build package always runs on ubuntu-22.04
fffonion Aug 1, 2023
90367b3
feat(explain_manifest): add ability to test docker images as well
fffonion Jul 14, 2023
e2b301e
fix(cd): fix git build on el7
fffonion Aug 3, 2023
1cf0551
chore(build): improve wasmx build (#11367)
fffonion Aug 17, 2023
b6c178c
docs(kong.conf): add section for wasm nginx.conf directives
flrgh Aug 10, 2023
e11fc12
fix(wasm): remove hardcoded isolation level
flrgh Aug 14, 2023
a225cd1
feat(router): support HTTP query parameters in expression routes (#11…
chronolaw Aug 10, 2023
b4a735b
tests(mlcache): skip flaky tests in mlcache test suite (#11530)
bungle Sep 8, 2023
faccf30
perf(template): use more reasonable default value for Nginx tuning (#…
dndx Sep 7, 2023
609ddc9
chore(patches): apply the LuaJIT ARM64 LDP/STP fusion fix from LuaJIT…
dndx Sep 11, 2023
b14e625
docs(changelog): fix changelog entry for #11537 (#11550)
chronolaw Sep 12, 2023
9487620
fix(tracing): span start/end time precision (#11484) (#11556)
team-gateway-bot Sep 13, 2023
a3b85c7
chore(*): update Kong Manager version & changelog (#11580)
Leopoldthecoder Sep 18, 2023
c90cb67
fix(postgres): close socket actively when timeout happens during quer…
windmgc Sep 18, 2023
d8cf3aa
fix(router): fix tls_passthrough in expression flavor (#11538)
chronolaw Sep 18, 2023
b6c0232
fix(test): don't expect specific status code in queue shutdown test (…
team-gateway-bot Sep 20, 2023
38f2c25
fix(vault): fix several issues in vault and refactor the vault code b…
team-gateway-bot Sep 20, 2023
dff6860
fix(queues): shutdown flag needs to be checked while waiting (#11456)…
team-gateway-bot Sep 20, 2023
eb33195
fix(runloop): upstream ssl failure when plugins use response handler …
team-gateway-bot Sep 22, 2023
a1ce858
fix(ci): disable -x flag when running upgrade tests (#11647)
team-gateway-bot Sep 25, 2023
40f3b78
fix(tracing): set parent span correctly (#11468) (#11609)
team-gateway-bot Sep 25, 2023
359cd0a
docs(changelog): generate 3.4.1 changelog (#11640)
vm-001 Sep 26, 2023
6badeb8
chore(test): fix flaky tests (#11451) (#11634)
team-gateway-bot Sep 26, 2023
c666b5e
fix(upgrade-tests): redirect stdout of docker pull in upgrade tests (…
team-gateway-bot Sep 26, 2023
85638b5
chore(changelog): reusable workflow / simpler changelog file format (…
hanshuebner Sep 27, 2023
8f21998
docs(COPYRIGHT): update copyright info in 3.4.1 (#11688)
kikito Oct 3, 2023
ad916d2
fix(hybrid): opentelemetry and zipkin header_type (#11687)
samugi Oct 3, 2023
501defc
chore(release): bump version numbers to 3.4.2 (#11691)
kikito Oct 5, 2023
0b47e24
Revert "fix(hybrid): opentelemetry and zipkin header_type (#11687)"
AndyZhang0707 Oct 12, 2023
36a63e0
fix(patches): apply Nginx patch for detecting HTTP/2 stream reset att…
windmgc Oct 12, 2023
f9f4111
chore(deps): bump ngx_wasm_module (#11737)
hishamhm Oct 11, 2023
d240aa2
release: 3.4.3 (#11751)
hanshuebner Oct 12, 2023
5edfe47
fix(vault): vault try should avoid using semaphore in non-yieldable p…
windmgc Sep 25, 2023
d202702
docs(changelog): generate 3.4.1 changelog
AndyZhang0707 Oct 13, 2023
12b224c
Revert "docs(changelog): generate 3.4.1 changelog"
AndyZhang0707 Oct 13, 2023
fd19e3b
docs(changelog): generate 3.4.2 changelog
AndyZhang0707 Oct 13, 2023
a612c51
Revert "Revert "fix(hybrid): opentelemetry and zipkin header_type (#1…
AndyZhang0707 Oct 13, 2023
fe269ab
fix(build): correctly set manifest for multiarch images (#11809) (#11…
team-gateway-bot Oct 24, 2023
e49fbd6
fix(tracing): set parent span correctly (#11786)
samugi Oct 24, 2023
0728e26
chore(deps): Bump OpenSSL version to 3.1.4
Water-Melon Oct 25, 2023
a8d42d0
fix(tcp-log):repeated sslhandshake in [tcp-log] plugin (#11803)
chenyyyang Oct 26, 2023
df667f8
tests(azure-functions): remove usage of mockbin in `azure-functions` …
windmgc Oct 31, 2023
0903587
refactor(aws-lambda): refactor aws-lambda plugin code with lua-resty-…
windmgc Aug 15, 2023
2905d1c
fix(aws-lambda): add better type and error handling on proxy integrat…
windmgc Aug 16, 2023
12bd44c
fix(aws-lambda): let plugin level proxy take effect on EKS IRSA crede…
windmgc Sep 13, 2023
2832796
fix(aws-lambda): lazily initialize aws library (#11614)
bungle Sep 20, 2023
b6d1c1b
fix(aws-lambda): aws lambda service cache by service related fields (…
windmgc Oct 23, 2023
054e773
fix(core): print error message correctly when plugin fails. (#11800)
zhongweiy Oct 24, 2023
b10ec16
chore: improve backporting process
jschmid1 Nov 6, 2023
5b373de
fix(acme): correctly concat returned error (#11364)
zekth Aug 8, 2023
d8daa7e
chore(deps): bump openresty from 1.21.4.1 to 1.21.4.2
bungle Aug 7, 2023
8dbfd7c
chore(patches): make luajit patches apply cleanly
bungle Sep 20, 2023
a94ecb7
chore(deps): bump openresty from 1.21.4.2 to 1.21.4.3 (#11952)
bungle Nov 8, 2023
0f9f555
chore(tests): deprecate uses of mockbin.com (#12028)
team-gateway-bot Nov 15, 2023
1ab8980
fix(dns): fix retry and timeout handling (#11386)
hanshuebner Aug 11, 2023
e9640b6
fix(dns): eliminate asynchronous timer in `syncQuery()` to prevent de…
chobits Nov 15, 2023
07ef2cc
chore(deps): bump lua-kong-nginx-module
samugi Nov 9, 2023
ef7ec33
feat(request-id): introduce unique Request ID (#11663)
dndx Sep 28, 2023
6ef29b7
perf(request-id): use `$kong_request_id` for `$request_id` for better…
chronolaw Oct 13, 2023
e2100c9
perf(request-id): use `proxy_set_header` instead of `ngx.req.set_head…
chobits Oct 20, 2023
3d7ccc1
fix(template): fix failure of starting if `proxy_access_log` is `off`…
team-gateway-bot Nov 22, 2023
3ccfbde
fix(core): respect custom proxy_access_log (#12073)
outsinre Nov 28, 2023
03b9035
feat(dist): re-enable ngx_devel_kit_module (#11457)
bungle Aug 25, 2023
fe4e661
chore(ci): fix workflow webhook notification and use "Kong/github-sla…
outsinre Nov 29, 2023
441c516
fix(vault): make it possible to use vault references in declarative c…
bungle Oct 25, 2023
842511b
feat(templates): bump `dns_stale_ttl` default to 1 hour (#12087)
chobits Dec 5, 2023
52680bf
chore(patches): fix ldoc intermittent fail caused by LuaJIT
zhongweiy Nov 10, 2023
da8e44a
fix(kconfig): remove kong version and edition from kconfig.js
raoxiaoyan Nov 20, 2023
a26b670
feat(admin-api): add gateway edition info to the endpoint `/` (#12097)
nekolab Nov 27, 2023
2e7381f
test(cmd): record ngx.time() before generating a cert (#12306)
flrgh Jan 9, 2024
5974bb0
chore(ci): add labeler config for core/wasm (#12334)
team-gateway-bot Jan 16, 2024
35c79dd
fix(dbless): fix error data loss caused by weakly typed of function …
oowl Dec 19, 2023
caab84f
perf(proxy): use higher default keepalive request value for Nginx tun…
chobits Dec 21, 2023
bc80125
fix(balancer): respect max retries (#12346)
tzssangglass Jan 18, 2024
c8930f4
Revert "fix(balancer): respect max retries (#12346)" (#12411)
samugi Jan 24, 2024
5f5d75b
fix(scripts): fix update-copyright in venv and remove unused repos
fffonion Nov 15, 2023
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
45 changes: 45 additions & 0 deletions .github/actions/build-cache-key/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Cache Key

description: >
Generates a cache key suitable for save/restore of Kong builds.

inputs:
prefix:
description: 'String prefix applied to the build cache key'
required: false
default: 'build'

outputs:
cache-key:
description: 'The generated cache key'
value: ${{ steps.cache-key.outputs.CACHE_KEY }}

runs:
using: composite
steps:
- name: Generate cache key
id: cache-key
shell: bash
run: |
# please keep these sorted
FILE_HASHES=(
${{ hashFiles('.bazelignore') }}
${{ hashFiles('.bazelrc') }}
${{ hashFiles('.bazelversion') }}
${{ hashFiles('.github/actions/build-cache-key/**') }}
${{ hashFiles('.github/workflows/build.yml') }}
${{ hashFiles('.requirements') }}
${{ hashFiles('BUILD.bazel') }}
${{ hashFiles('WORKSPACE') }}
${{ hashFiles('bin/kong') }}
${{ hashFiles('bin/kong-health') }}
${{ hashFiles('build/**') }}
${{ hashFiles('kong-*.rockspec') }}
${{ hashFiles('kong.conf.default') }}
${{ hashFiles('kong/**') }}
)

HASH=$(sha256sum - <<< "${FILE_HASHES[*]}" | awk '{print $1}' )
CACHE_KEY=${{ inputs.prefix }}::${HASH}
echo "cache-key: ${CACHE_KEY}"
echo "CACHE_KEY=${CACHE_KEY}" >> $GITHUB_OUTPUT
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ core/tracing:
- kong/tracing/**/*
- kong/pdk/tracing.lua

core/wasm:
- changed-files:
- any-glob-to-any-file: ['kong/runloop/wasm.lua', 'kong/runloop/wasm/**/*']

chore:
- .github/**/*
- .devcontainer/**/*
Expand Down
56 changes: 27 additions & 29 deletions .github/matrix-full.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
build-packages:
# label: used to distinguish artifacts for later use
# os: the github actions runner label to pick from
# image: docker image name if the build is running in side a container
# package: package type
# package-type: the nfpm packaging target, //:kong_{package} target; only used when package is rpm
Expand All @@ -9,73 +8,66 @@ build-packages:

# Ubuntu
- label: ubuntu-20.04
os: ubuntu-22.04
image: ubuntu:20.04
package: deb
check-manifest-suite: ubuntu-20.04-amd64
- label: ubuntu-22.04
os: ubuntu-22.04
package: deb
check-manifest-suite: ubuntu-22.04-amd64
- label: ubuntu-22.04-arm64
os: ubuntu-22.04
package: deb
bazel-args: --platforms=//:generic-crossbuild-aarch64 --//:wasmx=false
bazel-args: --platforms=//:generic-crossbuild-aarch64
check-manifest-suite: ubuntu-22.04-arm64

# Debian
- label: debian-10
os: ubuntu-22.04
image: debian:10
package: deb
check-manifest-suite: debian-10-amd64
- label: debian-11
os: ubuntu-22.04
image: debian:11
package: deb
check-manifest-suite: debian-11-amd64

# CentOS
- label: centos-7
os: ubuntu-22.04
image: centos:7
package: rpm
package-type: el7
check-manifest-suite: el7-amd64

# RHEL
- label: rhel-7
os: ubuntu-22.04
image: centos:7
package: rpm
package-type: el7
bazel-args: --//:wasmx_el7_workaround=true
check-manifest-suite: el7-amd64
- label: rhel-8
os: ubuntu-22.04
image: rockylinux:8
package: rpm
package-type: el8
check-manifest-suite: el8-amd64
- label: rhel-9
os: ubuntu-22.04
image: rockylinux:9
package: rpm
package-type: el9
check-manifest-suite: el9-amd64
- label: rhel-9-arm64
package: rpm
package-type: el9
bazel-args: --platforms=//:rhel9-crossbuild-aarch64
check-manifest-suite: el9-arm64

# Amazon Linux
# Amazon Linux
- label: amazonlinux-2
os: ubuntu-22.04
image: amazonlinux:2
package: rpm
package-type: aws2
check-manifest-suite: amazonlinux-2-amd64
- label: amazonlinux-2023
os: ubuntu-22.04
image: amazonlinux:2023
package: rpm
package-type: aws2023
check-manifest-suite: amazonlinux-2023-amd64
- label: amazonlinux-2023-arm64
package: rpm
package-type: aws2023
bazel-args: --platforms=//:aws2023-crossbuild-aarch64
check-manifest-suite: amazonlinux-2023-arm64

build-images:
# Only build images for the latest version of each major release.
Expand Down Expand Up @@ -107,6 +99,8 @@ build-images:
package: rpm
rpm_platform: el9
artifact-from: rhel-9
artifact-from-alt: rhel-9-arm64
docker-platforms: linux/amd64, linux/arm64

smoke-tests:
- label: ubuntu
Expand Down Expand Up @@ -153,14 +147,6 @@ release-packages:
artifact-type: debian
artifact: kong.amd64.deb

# CentOS
- label: centos-7
package: rpm
artifact-from: centos-7
artifact-version: 7
artifact-type: centos
artifact: kong.el7.amd64.rpm

# RHEL
- label: rhel-7
package: rpm
Expand All @@ -180,6 +166,12 @@ release-packages:
artifact-version: 9
artifact-type: rhel
artifact: kong.el9.amd64.rpm
- label: rhel-9-arm64
package: rpm
artifact-from: rhel-9-arm64
artifact-version: 9
artifact-type: rhel
artifact: kong.el9.arm64.rpm

# Amazon Linux
- label: amazonlinux-2
Expand All @@ -194,6 +186,12 @@ release-packages:
artifact-version: 2023
artifact-type: amazonlinux
artifact: kong.aws2023.amd64.rpm
- label: amazonlinux-2023-arm64
package: rpm
artifact-from: amazonlinux-2023-arm64
artifact-version: 2023
artifact-type: amazonlinux
artifact: kong.aws2023.arm64.rpm

release-images:
- label: ubuntu
Expand Down
64 changes: 39 additions & 25 deletions .github/workflows/backport-fail-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,44 @@ jobs:
check_comment:
runs-on: ubuntu-latest
if: github.event.issue.pull_request != null && contains(github.event.comment.body, 'To backport manually, run these commands in your terminal')

steps:
- name: Generate Slack Payload
id: generate-payload
uses: actions/github-script@v6
with:
script: |
const slack_mapping = JSON.parse(process.env.SLACK_MAPPING);
const pr_url = "${{ github.event.issue.pull_request.html_url}}";
const pr_author_github_id = "${{ github.event.issue.user.login }}"
const pr_author_slack_id = slack_mapping[pr_author_github_id];
const author = (pr_author_slack_id ? `<@${pr_author_slack_id}>` : pr_author_github_id);
const payload = {
text: `Backport failed in PR: ${pr_url}. Please check it ${author}.`,
channel: process.env.SLACK_CHANNEL,
};
return JSON.stringify(payload);
result-encoding: string
env:
SLACK_CHANNEL: gateway-notifications
SLACK_MAPPING: "${{ vars.GH_ID_2_SLACK_ID_MAPPING }}"
- name: Fetch mapping file
id: fetch_mapping
uses: actions/github-script@v6
env:
ACCESS_TOKEN: ${{ secrets.PAT }}
with:
script: |
const url = 'https://raw.githubusercontent.com/Kong/github-slack-mapping/main/mapping.json';
const headers = {Authorization: `token ${process.env.ACCESS_TOKEN}`};
const response = await fetch(url, {headers});
const mapping = await response.json();
return mapping;

- name: Generate Slack Payload
id: generate-payload
uses: actions/github-script@v6
env:
SLACK_CHANNEL: gateway-notifications
SLACK_MAPPING: "${{ steps.fetch_mapping.outputs.result }}"
with:
script: |
const pr_url = ${{ github.event.issue.pull_request.html_url }};
const slack_mapping = JSON.parse(process.env.SLACK_MAPPING);
const pr_author_github_id = ${{ github.event.issue.user.login }};
const pr_author_slack_id = slack_mapping[pr_author_github_id];
const author = pr_author_slack_id ? `<@${pr_author_slack_id}>` : pr_author_github_id;
const payload = {
text: `${pr_url} from ${author} failed to backport.`,
channel: process.env.SLACK_CHANNEL,
};
return JSON.stringify(payload);
result-encoding: string

- name: Send Slack Message
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
with:
payload: ${{ steps.generate-payload.outputs.result }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GATEWAY_NOTIFICATIONS_WEBHOOK }}
- name: Send Slack Message
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
with:
payload: ${{ steps.generate-payload.outputs.result }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GATEWAY_NOTIFICATIONS_WEBHOOK }}
31 changes: 17 additions & 14 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled

types: [closed]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport
runs-on: ubuntu-latest
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
if: github.event.pull_request.merged
steps:
- uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac # v2.0.3
- uses: actions/checkout@v4
- name: Create backport pull requests
uses: korthout/backport-action@cb79e4e5f46c7d7d653dd3d5fa8a9b0a945dfe4b # v2.1.0
with:
github_token: ${{ secrets.PAT }}
pull_title: '[backport -> ${target_branch}] ${pull_title}'
merge_commits: 'skip'
copy_labels_pattern: ^(?!backport ).* # copies all labels except those starting with "backport "
label_pattern: ^backport (release\/[^ ]+)$ # filters for labels starting with "backport " and extracts the branch name
pull_description: |-
Automated backport to `${target_branch}`, triggered by a label in #${pull_number}.
copy_assignees: true
copy_milestone: true
copy_requested_reviewers: true
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
relative-build-root:
required: true
type: string
outputs:
cache-key:
description: 'Computed cache key, used for restoring cache in other workflows'
value: ${{ jobs.build.outputs.cache-key }}

env:
BUILD_ROOT: ${{ github.workspace }}/${{ inputs.relative-build-root }}
Expand All @@ -14,6 +18,9 @@ jobs:
name: Build dependencies
runs-on: ubuntu-22.04

outputs:
cache-key: ${{ steps.cache-key.outputs.cache-key }}

steps:
- name: Checkout Kong source code
uses: actions/checkout@v3
Expand All @@ -24,13 +31,16 @@ jobs:
- name: Build WASM Test Filters
uses: ./.github/actions/build-wasm-test-filters

- name: Generate cache key
id: cache-key
uses: ./.github/actions/build-cache-key

- name: Lookup build cache
id: cache-deps
uses: actions/cache@v3
with:
path: |
${{ env.BUILD_ROOT }}
key: ${{ hashFiles('.requirements', 'kong-*.rockspec', '.bazelversion', '.bazelrc', 'build/**', 'BUILD.bazel', 'WORKSPACE', '.github/workflows/build_and_test.yml') }}
path: ${{ env.BUILD_ROOT }}
key: ${{ steps.cache-key.outputs.cache-key }}

- name: Install packages
if: steps.cache-deps.outputs.cache-hit != 'true'
Expand Down
Loading