Skip to content

Commit

Permalink
Merge pull request #157 from AccessibleAI/DEVOPS-1963
Browse files Browse the repository at this point in the history
Make possible to use private repos during the build
  • Loading branch information
abystrov authored Jan 9, 2024
2 parents ae39b53 + f4a23ed commit e1b2385
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/docker-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
build-args: |
BUILD_SHA=${{ steps.extract_info.outputs.head }}
BUILD_VERSION=${{ steps.tag_bump.outputs.new_tag }}
private_repo=github.com/AccessibleAI/cnvrg-shim
git_auth=${{ secrets.CNVRG_RUNNER_AUTH }}
- name: Build and push tagged image
id: docker_build_tag_branch
Expand All @@ -117,6 +119,8 @@ jobs:
build-args: |
BUILD_SHA=${{ steps.extract_info.outputs.head }}
BUILD_VERSION=${{ steps.tag_bump.outputs.new_tag }}
private_repo=github.com/AccessibleAI/cnvrg-shim
git_auth=${{ secrets.CNVRG_RUNNER_AUTH }}
- name: Generate Cnvrg Changelog
uses: AccessibleAI/[email protected]
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Build the manager binary
FROM golang:1.19.1 as builder

ARG git_auth
ENV GOPRIVATE=github.com/AccessibleAI/cnvrg-shim
ARG private_repo

ENV GOPRIVATE=$private_repo
WORKDIR /workspace
RUN git config --global --add url.https://[email protected]/.insteadOf https://github.com/
# Copy the Go Modules manifests
Expand Down

0 comments on commit e1b2385

Please sign in to comment.