Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.46 KB

README.md

File metadata and controls

72 lines (49 loc) · 1.46 KB

typescript-action status

artifactory-promote-action

Promotes Docker image artifacts between Artifactory repositories (registries).

Inputs

Example usage

Inputs

repository

Required Artifactory server URL

username

Required Artifactory username

password

Required Artifactory password

sourceRepo

Source Artifactory Docker repo

targetRepo

Target Artifactory Docker repo to promote to

tag

Docker tag to promote

targetTag

Target Docker tag after promotion (default: latest)

copy

Boolean value - copy image if true, move if false

Example usage

steps:
  - name: Promote Docker image
    uses: timperman/artifactory-promote-action@v1
    with:
      url: https://artifactory.jfrog.io
      username: ${{ secrets.DOCKER_USERNAME }}
      password: ${{ secrets.DOCKER_PASSWORD }}
      sourceRepo: docker-dev
      targetRepo: docker-prod
      dockerRepository: myorg/myrepository
      tag: ${{ github.sha }}
      targetTag: v1.0.0
      copy: 'true'