Use this action to promote (move or copy) a Docker image from JFrog Artifactory.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The JFrog Artifactory server URL. |
|
String |
Required only if |
The JFrog Artifactory token. |
|
String |
Required only if |
The JFrog Artifactory username. |
|
String |
Required only if |
The JFrog Artifactory password. |
|
String |
Yes |
The JFrog Artifactory source repository name. |
|
String |
Required only if the |
The JFrog Artifactory target repository name. |
|
String |
Yes |
The JFrog Artifactory source image name. |
|
String |
Required only if the |
The JFrog Artifactory target image name. |
|
String |
Yes |
The JFrog Artifactory source tag. |
|
String |
Required only if the |
The JFrog Artifactory target tag. |
|
String |
No |
Specifies whether to move or copy the image.
Default ('') specifies moving the image, and |
In your YAML file, add:
- name: Promote an image
uses: cloudbees-io/jfrog-artifactory-promote-image@v1
with:
url: ${{ vars.JFROG_URL }}
username: ${{ secrets.JFROG_USERNAME }}
password: ${{ secrets.JFROG_PASSWORD }}
token: ${{ secrets.JFROG_TOKEN }}
source-repository-name: local-test
target-repository-name: test
source-image-name: source-image
target-image-name: target-image
source-tag: 1
target-tag: 12
copy: "copy"
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.