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

Add serverless runtimes build (push) #1058

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
69 changes: 69 additions & 0 deletions .github/workflows/serverless-build-runtime-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: serverless runtimes build (push)

on:
push:
branches: [ "main", "release-*" ]
paths-ignore:
- 'docs/**'
- 'examples/**'

permissions:
id-token: write
contents: read

jobs:
compute-tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.TAG }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get the latest tag
id: get_tag
run: echo ::set-output name=TAG::${{ github.sha }}

build-image-nodejs18:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-nodejs18/ga
dockerfile: nodejs18/Dockerfile
context: components/runtimes/nodejs
tags: ${{ needs.compute-tag.outputs.tag }}

build-image-nodejs20:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-nodejs20/ga
dockerfile: nodejs20/Dockerfile
context: components/runtimes/nodejs
tags: ${{ needs.compute-tag.outputs.tag }}

build-image-python39:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-python39/ga
dockerfile: python39/Dockerfile
context: components/runtimes/python
tags: ${{ needs.compute-tag.outputs.tag }}

build-image-python312:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-python312/ga
dockerfile: python312/Dockerfile
context: components/runtimes/python
tags: ${{ needs.compute-tag.outputs.tag }}

build-image-java17:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-java17-jvm-alpha/ga
dockerfile: Dockerfile-jvm-runtime
context: components/runtimes/java17
tags: ${{ needs.compute-tag.outputs.tag }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pull-serverless-runtimes-build
name: serverless runtimes build (pull)

on:
pull_request_target:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/serverless-operator-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: serverless operator build (push)
on:
push:
branches: [ "main", "release-*" ]
paths-ignore:
- 'docs/**'
- 'examples/**'

permissions:
id-token: write
Expand All @@ -15,8 +18,7 @@ jobs:
tag: ${{ steps.get_tag.outputs.TAG }}
steps:
- name: Checkout
uses: actions/checkout@v2

uses: actions/checkout@v4
- name: Get the latest tag
id: get_tag
run: echo ::set-output name=TAG::${{ github.sha }}
Expand Down
Loading