Skip to content

Commit

Permalink
Add serverless runtimes build (push) (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke authored Jul 9, 2024
1 parent 6b04bfc commit bd54511
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 3 deletions.
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

0 comments on commit bd54511

Please sign in to comment.