Skip to content

Commit

Permalink
{.gitlab,Dockerfile}: add build-arg TWINE_TOKEN to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lerwys committed Nov 19, 2024
1 parent d2c5ea5 commit c413d99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab/ci/build.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build:
script: |
docker pull $CONTAINER_IMAGE:latest || true
docker build --cache-from $CONTAINER_IMAGE:latest \
--build-arg TWINE_TOKEN=$TWINE_TOKEN \
-t $CONTAINER_IMAGE:$CI_COMMIT_REF_NAME \
-t $CONTAINER_IMAGE:$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA \
-t $CONTAINER_IMAGE:latest \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ RUN apt-get update && \
cp bin/sv2v /usr/local/bin/

# Install LEEP
ARG TWINE_TOKEN

RUN pip3 install \
leep \
--index-url https://__token__:$TWINE_TOKEN@gitlab.lbl.gov/api/v4/projects/473/packages/pypi/simple

0 comments on commit c413d99

Please sign in to comment.