From e85b3cf8259b7e367050abf873429ad107c4ee1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ko=C5=82odziejczak?= <69915024+kolodziejczak@users.noreply.github.com> Date: Tue, 17 Sep 2024 08:19:17 +0200 Subject: [PATCH] Move image build from steps to jobs (#1018) --- .github/workflows/create-release.yaml | 45 +++++++++++++-------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 5e1bb812c8..8609c7bb27 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -43,10 +43,31 @@ jobs: exit 1 fi + build-image: + uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main + with: + name: istio-manager + dockerfile: Dockerfile + context: . + build-args: | + VERSION=${{ github.event.inputs.name }} + tags: "${{ github.event.inputs.name }}" + + build-image-experimental: + uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main + with: + name: istio-manager + dockerfile: Dockerfile + context: . + build-args: | + VERSION=${{ github.event.inputs.name }}-experimental + GO_BUILD_TAGS=experimental + tags: "${{ github.event.inputs.name }}-experimental" + create-draft: name: Create draft release runs-on: ubuntu-latest - needs: [check-prerequisites] + needs: [check-prerequisites, build-image, build-image-experimental] steps: - name: Checkout code uses: actions/checkout@v4 @@ -86,28 +107,6 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Build manager image - uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main - with: - name: istio-manager - dockerfile: Dockerfile - context: . - build-args: | - VERSION=${{ github.event.inputs.name }} - tags: "${{ github.event.inputs.name }}" - - - name: Build manager image - experimental - uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main - with: - name: istio-manager - dockerfile: Dockerfile - context: . - build-args: | - VERSION=${{ github.event.inputs.name }}-experimental - GO_BUILD_TAGS=experimental - tags: "${{ github.event.inputs.name }}-experimental" - - name: Publish release assets env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}