Skip to content

Commit

Permalink
[SYSE-337]: Update releng for release-4-lts (#6227)
Browse files Browse the repository at this point in the history
The releng related files are updated with the current updates from
gromit templates, also adds changes external to the templates to support
the current version of templates:

- Adds a separate plugin compiler build workflow 

## Related Issue
SYSE-337

Co-authored-by: Gromit <policy@gromit>
  • Loading branch information
asutosh and Gromit authored Apr 16, 2024
1 parent 5a9989e commit cac4cb4
Show file tree
Hide file tree
Showing 25 changed files with 405 additions and 1,723 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/plugin-compiler-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: Plugin-compiler build

on:
pull_request:
push:
tags:
- 'v*'

env:
GOLANG_CROSS: 1.15

jobs:
docker-build:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set docker metadata
id: set-metadata
uses: docker/metadata-action@v4
with:
images: |
tykio/tyk-plugin-compiler,enable=${{ startsWith(github.ref, 'refs/tags') }}
labels: |
org.opencontainers.image.title=tyk-plugin-compiler
org.opencontainers.image.description=Plugin compiler for the Tyk API Gateway
tags: |
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern={{raw}}
- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push to dockerhub
uses: docker/build-push-action@v4
with:
context: .
file: ci/images/plugin-compiler/Dockerfile
platforms: linux/amd64
push: ${{ startsWith(github.ref, 'refs/tags') }}
labels: ${{ steps.set-metadata.outputs.labels }}
tags: ${{ steps.set-metadata.outputs.tags }}
build-args: |
GOLANG_CROSS=${{ env.GOLANG_CROSS }}
Loading

0 comments on commit cac4cb4

Please sign in to comment.