### **User description**
- [x] Do not maintain release-4-lts anymore
- [ ] Build faster
- [ ] Distroless based images
- [x] upgrade tests have incorrect conditional
___
### **PR Type**
enhancement, bug_fix
___
### **Description**
- Updated CI/CD pipeline configuration in
`.github/workflows/release.yml` to fix incorrect metadata references and
improve the build process.
- Added new 'cache_db' outputs and updated Docker compose commands to
support additional database configurations.
- Introduced a new 'distroless' job in the CI/CD pipeline to build
distroless images for the Tyk gateway, enhancing security by minimizing
runtime dependencies.
- Created a new `ci/Dockerfile.distroless` for building distroless
images, which includes multi-stage builds and optimized configurations
for different architectures.
___
### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement
</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>release.yml</strong><dd><code>Enhancements and Fixes in
CI/CD Pipeline Configuration</code> </dd></summary>
<hr>
.github/workflows/release.yml
<li>Updated Docker metadata step IDs and output tags to use
'ci_metadata' <br>instead of 'metadata'.<br> <li> Modified the
goreleaser command to skip signing instead of snapshot <br>signing based
on the branch condition.<br> <li> Updated the container version used in
the test-controller-api job from <br>v1.7 to v1.8.<br> <li> Added
handling for a new 'cache_db' output and included it in Docker
<br>compose commands.<br> <li> Introduced a new job 'distroless' to
build distroless images of Tyk <br>gateway.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6270/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34">+66/-8</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>Dockerfile.distroless</strong><dd><code>New Dockerfile
for Distroless Tyk Gateway Images</code>
</dd></summary>
<hr>
ci/Dockerfile.distroless
<li>Created a new Dockerfile for building distroless images of Tyk
<br>gateway.<br> <li> Uses multi-stage builds starting from
'debian:bookworm-slim' and <br>transitioning to
'gcr.io/distroless/base-debian12:nonroot'.<br> <li> Copies the Tyk
gateway application from the build stage to the <br>distroless
stage.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6270/files#diff-ab1e64220db8ccca1a52a505decc2beb2156d5ec3ecb7d6b8660cc3dc7e1f5bd">+20/-0</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
___
> 💡 **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools
and their descriptions
Co-authored-by: Gromit <policy@gromit>
User description
PR Type
enhancement, bug_fix
Description
.github/workflows/release.ymlto fix incorrect metadata references and improve the build process.ci/Dockerfile.distrolessfor building distroless images, which includes multi-stage builds and optimized configurations for different architectures.Changes walkthrough 📝
release.yml
Enhancements and Fixes in CI/CD Pipeline Configuration.github/workflows/release.yml
instead of 'metadata'.
signing based on the branch condition.
v1.7 to v1.8.
compose commands.
gateway.
Dockerfile.distroless
New Dockerfile for Distroless Tyk Gateway Imagesci/Dockerfile.distroless
gateway.
transitioning to 'gcr.io/distroless/base-debian12:nonroot'.
distroless stage.