Skip to content

Commit

Permalink
fix docker secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon J. Köhn committed Dec 20, 2024
1 parent 1129117 commit 39ba6d0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,18 @@ jobs:
echo SAMPLE_ID=${{ secrets.SAMPLE_ID }} >> .env
echo BATCH_ID=${{ secrets.BATCH_ID }} >> .env
echo TIMELINE_FILE=${{ secrets.TIMELINE_FILE }} >> .env
echo PRIMER_FILE=${{ secrets.PRMER_FILE }} >> .env
echo PRIMER_FILE=${{ secrets.PRIMER_FILE }} >> .env
echo NEXTCLADE_REFERENCE=${{ secrets.NEXTCLADE_REFERENCE }} >> .env
echo RESULTS_DIR=${{ secrets.RESULTS_DIR }} >> .env
echo AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} >> .env
echo AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} >> .env
echo AWS_DEFAULT_REGION=${{ secrets.AWS_DEFAULT_REGION }} >> .env
- name: Create Docker secrets files
run: |
mkdir -p ./secrets
echo "${{ secrets.AWS_ACCESS_KEY_ID }}" > ./secrets/aws_access_key_id.txt
echo "${{ secrets.AWS_SECRET_ACCESS_KEY }}" > ./secrets/aws_secret_access_key.txt
echo "${{ secrets.AWS_DEFAULT_REGION }}" > ./secrets/aws_default_region.txt
- name: Run Docker Compose
run: docker-compose --env-file .env up -d
Expand Down

0 comments on commit 39ba6d0

Please sign in to comment.