This step walks you through creating a Go repository type and uploading your go project, allowing you to use Artifactory as your artifact repository. You can then follow the instructions to create other types of repositories, such as Maven, npm, and Docker.
Navigate to the Administration Module.
Expand the Repositories menu and click the Repositories menu item.
Create three new Go package type repositories.
Add a new Local Repository with the Repository Key “go-challenge-local” and keep the rest of the default settings.
Click on the Remote tab and add a new Remote Repository with the Repository Key “go-challenge-remote” and keep the rest of the default settings.
Click on the Virtual tab and add a new Virtual Repository with the Repository Key “go-challenge”.
Add the local and remote Go repositories you just created.
Configure JFrog CLI, a smart client that provides a simple interface that automates access to JFrog products simplifying our automation scripts.
Configure the Artifactory server.
$ jf c add
Take the following steps to build the project with Go and resolve the project dependencies from Artifactory.
Go to the root project directory
Configure the project's Go repositories using the command:
$ jfrog rt go-config
Build the project with go and resolve the project dependencies from Artifactory.
$ jfrog rt go build --build-name=go-challenge-build --build-number=1
Publish version v1.0.0 of the package to the go-challenge-local repository in Artifactory.
$ jfrog rt gp go-challenge v1.0.0 --build-name=go-challenge-build --build-number=1
Collect environment variables and add them to the build info.
$ jfrog rt bce go-challenge-build 1
Publish the build info to Artifactory
$ jfrog rt bp go-challenge-build 1
Navigate to the Application Module.
Expand the Artifactory menu and click the Artifacts menu item.
Here you’ll be able to see the details of your new artifacts.