Skip to content

Commit

Permalink
Move image build from steps to jobs (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolodziejczak authored Sep 17, 2024
1 parent b30fb8b commit e85b3cf
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit e85b3cf

Please sign in to comment.