Go repositories are supported by Artifactory since version 5.11.0. To work with Go repositories you need to use JFrog CLI and the Go client.
- Install version 1.11 or above of go.
- Make sure the go command is in your PATH.
- Install JFrog CLI
- Make sure your Artifactory version is 5.11.0 or above
- Make sure your JFrog CLI version is 1.26.0 or above
'cd' to the root project directory
Configure Artifactory:
> jf c add
Configure the project's repositories:
> jf rt go-config
Build the project with go and resolve the project dependencies from Artifactory.
> jf rt go build --build-name=my-build --build-number=1
Publish version v1.0.0 of the package to the go-local repository in Artifactory.
> jf rt gp go-local v1.0.0 --build-name=my-build --build-number=1
Collect environment variables and add them to the build info.
> jf rt bce my-build 1
Publish the build info to Artifactory.
> jf rt bp my-build 1
Learn about building go packages and about Artifactory and go registry integration.