Skip to content

nv-gha-runners/setup-artifactory-go-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

setup-artifactory-go-proxy

This composite action is intended to be used on NVIDIA's self-hosted runners.

It signs into Artifactory via OIDC and outputs an authenticated URL that can be set as the GOPROXY environment variable before running a Golang build.

Inputs

Input Type Default Description
artifactory-domain string edge.urm.nvidia.com Artifactory domain
artifactory-repository string edge-go-remote-virtual Artifactory repository
oidc-audience string edge.urm.nvidia.com Value of the aud claim for the OIDC token
oidc-provider-name string nvgithub Value of the Artifactory OIDC provider name

Outputs

Input Type Description
goproxy-url string URL for Go proxy with basic auth credentials embedded

Example

name: build

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: linux-amd64-cpu4
    permissions:
      contents: read
      id-token: write # this permission is necessary for OIDC to work
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Install Go
        uses: actions/setup-go@v5
        with:
          go-version: stable # or specific version, like '1.25'
      - name: Setup Go Proxy
        id: setup-go-proxy
        uses: nv-gha-runners/setup-artifactory-go-proxy@main
      - env:
          GOPROXY: ${{ steps.setup-go-proxy.outputs.goproxy-url }}
        run: |
          go build .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors