From b2d5610a7b00447631dd301494a18ceabc27bebd Mon Sep 17 00:00:00 2001 From: Andrey Velichkevich Date: Thu, 15 Aug 2024 16:54:11 +0100 Subject: [PATCH] Debug action Signed-off-by: Andrey Velichkevich --- .github/workflows/build-and-publish-images.yaml | 8 ++++---- .github/workflows/publish-core-images.yaml | 4 ++-- .github/workflows/template-publish-image/action.yaml | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-publish-images.yaml b/.github/workflows/build-and-publish-images.yaml index dbb8ce37a9..41efe05a4b 100644 --- a/.github/workflows/build-and-publish-images.yaml +++ b/.github/workflows/build-and-publish-images.yaml @@ -17,8 +17,8 @@ on: required: false type: string default: . - prefix: - required: true + tag-prefix: + required: false type: string default: v1 secrets: @@ -61,7 +61,7 @@ jobs: platforms: ${{ inputs.platforms }} context: ${{ inputs.context }} push: true - prefix: ${{ inputs.prefix }} + tag-prefix: ${{ inputs.tag-prefix }} - name: Test Build For Component ${{ inputs.component-name }} if: steps.publish.outcome == 'skipped' @@ -72,4 +72,4 @@ jobs: platforms: ${{ inputs.platforms }} context: ${{ inputs.context }} push: false - prefix: ${{ inputs.prefix }} + tag-prefix: ${{ inputs.tag-prefix }} diff --git a/.github/workflows/publish-core-images.yaml b/.github/workflows/publish-core-images.yaml index 692283bcaf..ead885e8e4 100644 --- a/.github/workflows/publish-core-images.yaml +++ b/.github/workflows/publish-core-images.yaml @@ -13,7 +13,7 @@ jobs: platforms: ${{ matrix.platforms }} dockerfile: ${{ matrix.dockerfile }} context: ${{ matrix.context }} - prefix: ${{ matrix.prefix }} + tag-prefix: ${{ matrix.tag-prefix }} secrets: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} @@ -28,7 +28,7 @@ jobs: - component-name: training-operator dockerfile: cmd/training-operator.v2alpha1/Dockerfile platforms: linux/amd64,linux/arm64,linux/ppc64le - prefix: v2alpha1 + tag-prefix: v2alpha1 - component-name: kubectl-delivery dockerfile: build/images/kubectl-delivery/Dockerfile platforms: linux/amd64,linux/arm64,linux/ppc64le diff --git a/.github/workflows/template-publish-image/action.yaml b/.github/workflows/template-publish-image/action.yaml index 9759e5422a..03fbd3caee 100644 --- a/.github/workflows/template-publish-image/action.yaml +++ b/.github/workflows/template-publish-image/action.yaml @@ -19,10 +19,10 @@ inputs: push: required: true description: whether to push container images or not - prefix: - required: true + tag-prefix: + required: false default: v1 - description: Prefix for image tag, e.g. v1 or v2alpha1 + description: Prefix for the image tag, e.g. v1 or v2alpha1 runs: using: composite @@ -42,7 +42,7 @@ runs: images: ${{ inputs.image }} tags: | type=raw,latest - type=sha,prefix=${{ inputs.prefix }}- + type=sha,prefix=${{ inputs.tag-prefix }}- - name: Build and Push uses: docker/build-push-action@v5