-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYSE-337]: Update releng for release-4-lts (#6227)
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
Showing
25 changed files
with
405 additions
and
1,723 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Oops, something went wrong.