Skip to content

Commit

Permalink
docker-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yordanovsstoyan committed Aug 7, 2024
1 parent 4ca2f95 commit d03fb25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions actions/java-gradle-build-jib/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ inputs:
description: "Name of Docker image."
required: false
default: "${{ github.event.repository.name }}"
additional-tags:
description: "Addiitional Tags of Jib Image (comma separated list)"
required: false
default: ""
image-tag:
description: "Tag of Jib Image"
required: false
Expand Down Expand Up @@ -90,8 +86,8 @@ runs:
with:
images: ${{ inputs.image-name }}
tags: |
event=push,type=raw,value=${{ inputs.additional-tags }}
event=pr,type=raw,value=${{ inputs.additional-tags }}
event=push,type=raw,value=${{ inputs.image-tag }}
event=pr,type=raw,value=${{ inputs.image-tag }}
event=tag,type=semver,pattern={{ version }}
- name: Build Docker image
Expand All @@ -102,7 +98,7 @@ runs:
-Djib.from.platforms=${{ inputs.platforms }} \
${{ inputs.jib-from-image && format('-Djib.from.image={0}', inputs.jib-from-image) || '' }} \
${{ inputs.class && format('-Djib.container.mainClass={0}', inputs.class) || '' }} \
-Djib.to.image=${{ inputs.full-image-name }}:${{ inputs.image-tag }} \
-Djib.to.image=${{ inputs.full-image-name }}:${{ steps.meta.outputs.tags }} \
${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }} \
${{ inputs.allow-insecure-registries == 'true' && '-Djib.allowInsecureRegistries=true' || '' }}
shell: bash
Expand Down
1 change: 0 additions & 1 deletion docs/actions/java-gradle-build-jib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
| --------------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| additional-tags | string | false | | Addiitional Tags of Jib Image (comma separated list) |
| 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 Down

0 comments on commit d03fb25

Please sign in to comment.