Skip to content

Commit

Permalink
fix docker problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaconsalvi committed Sep 9, 2024
1 parent bfac7a2 commit 0484576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/docker/Dockerfile.multistage
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ USER quarkus

WORKDIR /code

ARG GH_USER

ENV GH_USER=${GH_USER}

RUN \
--mount=type=secret,id=gh_token,uid=1001 \
export GH_TOKEN=$(cat /run/secrets/gh_token) && \
Expand Down
2 changes: 2 additions & 0 deletions src/main/docker/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
```shell
export GH_USER=<your_user_name>
echo <your_token> >> GH_TOKEN.txt
sudo docker build --no-cache --progress=plain --build-arg GH_USER=$GH_USER --secret id=gh_token,src=GH_TOKEN.txt -f src/main/docker/Dockerfile.multistage -t ghcr.io/pagopa/mil-auth:latest .
```

0 comments on commit 0484576

Please sign in to comment.