Skip to content

Commit

Permalink
Fix deprecate build action step (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke authored Jul 17, 2024
1 parent bd27e1c commit a526c90
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 119 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,96 +6,104 @@ on:
paths-ignore:
- 'docs/**'
- 'examples/**'
tags:
- '^v?\d+\.\d+\.\d+(?:-.*)?$'

permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout

jobs:
compute-tag:
compute-tags:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.TAG }}
tags: ${{ steps.get_tag.outputs.TAGS }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get the latest tag
id: get_tag
run: echo ::set-output name=TAG::${{ github.sha }}
run: |
{
echo 'TAGS<<EOF'
echo "${{ github.sha }}"
echo "${{ github.ref_name}}"
echo EOF
} >> "$GITHUB_OUTPUT"
build-operator:
needs: compute-tag
needs: compute-tags
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: serverless-operator
dockerfile: components/operator/Dockerfile
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}

build-serverless-controller:
needs: compute-tag
needs: compute-tags
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-controller
dockerfile: components/serverless/deploy/manager/Dockerfile
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}

build-serverless-webhook:
needs: compute-tag
needs: compute-tags
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-webhook
dockerfile: components/serverless/deploy/webhook/Dockerfile
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}

build-serverless-jobinit:
needs: compute-tag
needs: compute-tags
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-build-init
dockerfile: components/serverless/deploy/jobinit/Dockerfile
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}

build-nodejs18:
needs: compute-tag
needs: compute-tags
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
dockerfile: nodejs18/Dockerfile
context: components/runtimes/nodejs
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}

build-nodejs20:
needs: compute-tag
needs: compute-tags
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
dockerfile: nodejs20/Dockerfile
context: components/runtimes/nodejs
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}

build-python39:
needs: compute-tag
needs: compute-tags
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
dockerfile: python39/Dockerfile
context: components/runtimes/python
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}

build-python312:
needs: compute-tag
needs: compute-tags
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
dockerfile: python312/Dockerfile
context: components/runtimes/python
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}

build-java17:
needs: compute-tag
needs: compute-tags
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
dockerfile: Dockerfile-jvm-runtime
context: components/runtimes/java17
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tags.outputs.tags }}
98 changes: 0 additions & 98 deletions .github/workflows/build-release.yaml

This file was deleted.

0 comments on commit a526c90

Please sign in to comment.