-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI Platform / Build Docker Images | ||
name: Build Docker Images | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -12,30 +12,22 @@ on: | |
type: boolean | ||
description: (bool) Whether this is a release or not | ||
default: false | ||
amd64_artifact_name: | ||
description: "(string) AMD64 Artifact name" | ||
type: string | ||
required: true | ||
arm64_artifact_name: | ||
description: "(string) ARM64 Artifact name" | ||
type: string | ||
required: true | ||
outputs: | ||
all_conduktor_tags: | ||
description: (json string) All conduktor ctl image tags built (in format repo/namespace/image:tag) | ||
value: ${{ jobs.build-platform-docker.outputs.all_tags }} | ||
value: ${{ jobs.build-docker.outputs.all_tags }} | ||
ghcr_conduktor_tags: | ||
description: (json string) All conduktor ctl GHCR image tags (in format ghcr.io/namespace/image:tag) | ||
value: ${{ jobs.build-platform-docker.outputs.ghcr_tags }} | ||
value: ${{ jobs.build-docker.outputs.ghcr_tags }} | ||
ghcr_conduktor_digest: | ||
description: (string) Only the first conduktor ctl GHCR image digest (in format ghcr.io/namespace/image@sha256:digest) | ||
value: ${{ jobs.build-platform-docker.outputs.ghcr_digest }} | ||
value: ${{ jobs.build-docker.outputs.ghcr_digest }} | ||
harbor_conduktor_tags: | ||
description: (json string) Only the first conduktor image tags (in format harbor.cdkt.dev/namespace/image:tag) | ||
value: ${{ jobs.build-platform-docker.outputs.harbor_tags }} | ||
value: ${{ jobs.build-docker.outputs.harbor_tags }} | ||
harbor_conduktor_digest: | ||
description: (string) Only the first conduktor image digest (in format harbor.cdkt.dev/namespace/image@sha256:digest) | ||
value: ${{ jobs.build-platform-docker.outputs.harbor_digest }} | ||
value: ${{ jobs.build-docker.outputs.harbor_digest }} | ||
env: | ||
GHCR_REGISTRY: "ghcr.io" | ||
HARBOR_REGISTRY: "harbor.cdkt.dev" | ||
|
@@ -45,10 +37,9 @@ env: | |
LABEL_IMAGE_VENDOR: "Conduktor.io" | ||
|
||
jobs: | ||
|
||
build-platform-docker: | ||
build-docker: | ||
name: Build Platform Docker | ||
runs-on: [cdk-standard] | ||
runs-on: [cdk-large] | ||
outputs: | ||
all_tags: ${{ toJson(steps.docker_meta.outputs.tags) }} | ||
ghcr_tags: ${{ toJson(steps.output_image_tag.outputs.ghcr_tags) }} | ||
|
@@ -59,7 +50,7 @@ jobs: | |
id-token: write | ||
contents: read | ||
env: | ||
PLATFORM_IMAGE: "conduktorctl" | ||
IMAGE_NAME: "conduktorctl" | ||
GHCR_IMAGE: "ghcr.io/conduktor/conduktorctl" | ||
HARBOR_IMAGE: "harbor.cdkt.dev/conduktor/conduktorctl" | ||
LABEL_IMAGE_TITLE: "Conduktor ctl" | ||
|
@@ -84,8 +75,7 @@ jobs: | |
uses: conduktor/conduktor-actions/[email protected] | ||
with: | ||
image-name: | | ||
${{ env.PLATFORM_IMAGE }} | ||
conduktor-console | ||
${{ env.IMAGE_NAME }} | ||
namespace: ${{ env.NAMESPACE }} | ||
tags: ${{ inputs.image_tags }} | ||
labels: | | ||
|
@@ -105,14 +95,13 @@ jobs: | |
echo "name=conduktorctl" >> "${GITHUB_OUTPUT}" | ||
echo "platforms=linux/amd64,linux/arm64" >> "${GITHUB_OUTPUT}" | ||
- name: Build ${{ env.PLATFORM_IMAGE }} for ${{ steps.buildx.outputs.platforms }} | ||
- name: Build ${{ env.IMAGE_NAME }} for ${{ steps.buildx.outputs.platforms }} | ||
id: build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: ${{ steps.buildx.outputs.platforms }} | ||
builder: ${{ steps.buildx.outputs.name }} | ||
pull: true | ||
push: true | ||
file: docker/Dockerfile | ||
tags: ${{ steps.docker_meta.outputs.tags }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters