diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3cbb8dc..4235291 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -9,7 +9,6 @@ env: BINARY_NAME: eia-client GO_MOD_PATH: gitea.libretechconsulting.com/50W/eia-api-go GITEA_HOST: gitea.libretechconsulting.com - GOPRIVATE: gitea.libretechconsulting.com/* # DOCKER_HOST: "unix:///var/run/user/1000/docker.sock" # DOCKER_ORG: "rmcguire" # DOCKER_LATEST: "latest" @@ -44,9 +43,12 @@ jobs: fi - name: Generate and Upload Package to Go Registry + env: + GOPRIVATE: gitea.libretechconsulting.com/* run: | go list --json echo "machine ${GITEA_HOST} login ${GITHUB_REPOSITORY_OWNER} password ${API_TOKEN}" > ~/.netrc + chmod 0600 ~/.netrc go mod download -x --json ${GO_MOD_PATH}@${{ github.ref_name }} 2>&1 if [[ $? -ne 0 ]]; then echo "Failed to generage go package archive for ${GO_MOD_PATH}@${{ github.ref_name }}"