From 39ba6d0bcacd6c755eeedf4dfcfe14e707ab0a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gordon=20J=2E=20K=C3=B6hn?= Date: Fri, 20 Dec 2024 11:46:13 +0100 Subject: [PATCH] fix docker secrets --- .github/workflows/docker-build-test.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index a202d2a..62f5b31 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -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