From d8f7623a7e34d69c650b6b6e86bb73a2a55f34ff Mon Sep 17 00:00:00 2001 From: herveleclerc Date: Fri, 6 Sep 2024 15:32:51 +0200 Subject: [PATCH] again --- .github/workflows/build-courses.yml | 13 +++++++++++-- Dockerfile | 6 ++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-courses.yml b/.github/workflows/build-courses.yml index 8b5516d..9908a84 100644 --- a/.github/workflows/build-courses.yml +++ b/.github/workflows/build-courses.yml @@ -46,8 +46,17 @@ jobs: AWS_REGION: ${{ secrets.AWS_REGION }} SOURCE_DIR: 'output-pdf' DEST_DIR: 'formations/pdf' - - run: pwd - - run: ls -la + + - + name: Copy a file from s3 + uses: prewk/s3-cp-action@v2 + with: + aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + source: 's3://training.alterway.fr/revealjs/' + dest: './revealjs' + flags: --recursive + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/Dockerfile b/Dockerfile index 2ad772d..42c4fb1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,5 @@ FROM nginx:alpine COPY --chown=42:42 output-html /usr/share/nginx/html COPY --chown=42:42 images /usr/share/nginx/html/images -RUN apk add git && \ - git clone https://github.com/hakimel/reveal.js /usr/share/nginx/html/revealjs && \ - apk del git -COPY --chown=42:42 styles /usr/share/nginx/html/revealjs/css/theme \ No newline at end of file +COPY --chown=42:42 revealjs /usr/share/nginx/html/revealjs +COPY --chown=42:42 styles /usr/share/nginx/html/revealjs/css/theme