Skip to content

Commit

Permalink
Debug action
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Aug 15, 2024
1 parent a4d2d3b commit b2d5610
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-publish-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ on:
required: false
type: string
default: .
prefix:
required: true
tag-prefix:
required: false
type: string
default: v1
secrets:
Expand Down Expand Up @@ -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'
Expand All @@ -72,4 +72,4 @@ jobs:
platforms: ${{ inputs.platforms }}
context: ${{ inputs.context }}
push: false
prefix: ${{ inputs.prefix }}
tag-prefix: ${{ inputs.tag-prefix }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-core-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/template-publish-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b2d5610

Please sign in to comment.