Skip to content

Commit

Permalink
additional tags
Browse files Browse the repository at this point in the history
  • Loading branch information
yordanovsstoyan committed Aug 8, 2024
1 parent 87e8cb1 commit 264cb67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions actions/java-gradle-build-jib/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ inputs:
image-tag:
description: "Tag of Jib Image"
required: false
default: "pipeline-${{ github.run_id }}-git-${{ github.sha::8 }}"
default: "pipeline-${{ github.run_id }}-git-${{ github.sha }}"
additional-tags:
description: " Additional Tags of Jib Image (comma separated)"
required: false
type: string
full-image-name:
description: "Full name of image (registry/image:tag) If an image name is provided without a tag, 'latest' will be used. Be careful with registries that dont allow overwriting tags."
required: true
Expand Down Expand Up @@ -86,8 +90,8 @@ runs:
with:
images: ${{ inputs.image-name }}
tags: |
event=push,type=raw,value=${{ inputs.image-tag }}
event=pr,type=raw,value=${{ inputs.image-tag }}
event=push,type=raw,value=${{ inputs.additional-tags }}
event=pr,type=raw,value=${{ inputs.additional-tags }}
event=tag,type=semver,pattern={{ version }}
- name: Build Docker image
Expand Down
3 changes: 2 additions & 1 deletion docs/actions/java-gradle-build-jib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
| --------------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| additional-tags | string | false | | Additional Tags of Jib Image (comma separated) |
| allow-insecure-registries | string | false | `"false"` | Whether to allow insecure registries or not. (Default is false) |
| class | string | false | | The entrypoint class to be used for the image |
| download-lfs-files | string | false | `"false"` | Whether the Git checkout action should resolve LFS files or not. (Default is false) |
Expand All @@ -15,7 +16,7 @@
| gradle-refresh-dependencies | string | false | `"false"` | Whether Gradle should refresh dependencies. (Default is false) |
| gradle-version | string | false | `"wrapper"` | Gradle version to be installed. (Default is wrapper) |
| image-name | string | false | `"${{ github.event.repository.name }}"` | Name of Docker image. |
| image-tag | string | false | `"pipeline-${{ github.run_id }}-git-${{ github.sha::8 }}"` | Tag of Jib Image |
| image-tag | string | false | `"pipeline-${{ github.run_id }}-git-${{ github.sha }}"` | Tag of Jib Image |
| java-distribution | string | false | `"microsoft"` | Java distribution to be installed. (Default is microsoft) |
| java-version | string | false | `"11"` | Java version to be installed. (Default is 11) |
| jib-from-image | string | false | | The Jib base image to use |
Expand Down

0 comments on commit 264cb67

Please sign in to comment.