Skip to content

Commit

Permalink
shift achilles github pat secret to build
Browse files Browse the repository at this point in the history
  • Loading branch information
alondhe committed Jan 4, 2024
1 parent 5e02356 commit 9dc99e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions achilles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM docker.io/rocker/r-ver:4.2.3

#RUN echo 'GITHUB_PAT=' /run/secrets/GITHUB_PAT >> /root/.Renviron

RUN echo 'GITHUB_PAT=' /run/secrets/GITHUB_PAT >> /root/.Renviron
RUN GITHUB_PAT=$(cat /run/secrets/GITHUB_PAT)

RUN <<EOF
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,14 @@ services:

broadsea-run-achilles:
profiles: [ "cdm-postprocessing", "achilles" ]
build: ./achilles
build:
context: ./achilles
secrets:
- GITHUB_PAT
platform: "linux/amd64"
container_name: broadsea-run-achilles
secrets:
- CDM_CONNECTIONDETAILS_PASSWORD
- GITHUB_PAT
volumes:
- jdbc-drivers-data:/jdbc
- cdm-postprocessing-data:/postprocessing
Expand Down

0 comments on commit 9dc99e5

Please sign in to comment.