Skip to content

cloudbees-io/jfrog-artifactory-promote-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudBees action: Promote an image from JFrog Artifactory

Use this action to promote (move or copy) a Docker image from JFrog Artifactory.

Inputs

Table 1. Input details
Input name Data type Required? Description

url

String

Yes

The JFrog Artifactory server URL.

token

String

Required only if username and password are not specified.

The JFrog Artifactory token.

username

String

Required only if token is not specified.

The JFrog Artifactory username.

password

String

Required only if token is not specified.

The JFrog Artifactory password.

source-repository-name

String

Yes

The JFrog Artifactory source repository name.

target-repository-name

String

Required only if the target-image-name and the target-tag are not specified.

The JFrog Artifactory target repository name.

source-image-name

String

Yes

The JFrog Artifactory source image name.

target-image-name

String

Required only if the target-repository-name and the target-tag are not specified.

The JFrog Artifactory target image name.

source-tag

String

Yes

The JFrog Artifactory source tag.

target-tag

String

Required only if the target-repository-name and the target-image-name are not specified.

The JFrog Artifactory target tag.

copy

String

No

Specifies whether to move or copy the image. Default ('') specifies moving the image, and true specifies copying the image.

Usage example

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"

License

This code is made available under the MIT license.

References