Skip to content

Commit

Permalink
fix pipeline for slides
Browse files Browse the repository at this point in the history
  • Loading branch information
ombre8 committed Oct 14, 2024
1 parent 7038f0e commit 49eab64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-slides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build-slides-stg:
runs-on: ubuntu-latest
steps:
-
-
name: Checkout
uses: actions/checkout@v3
with:
Expand All @@ -22,13 +22,13 @@ jobs:
uses: docker/setup-buildx-action@v2
-
name: Login to Quay.io Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_TOKEN }}
-
name: Build Slides
-
name: Build Slides
uses: docker/build-push-action@v3
with:
context: .
Expand All @@ -55,12 +55,12 @@ jobs:
with:
name: trivy-results-build
path: trivy-results.txt
-
-
name: Install Kubectl
uses: azure/setup-kubectl@v3
with:
version: v1.21.2
-
-
name: Deploy RevealJS Stg
env:
TRAINING_NAMESPACE: 'pitc-ansible-training-stg'
Expand Down
4 changes: 2 additions & 2 deletions slides/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /app

RUN --mount=type=secret,id=gitlab_pullsecret PULLSECRET=$(cat /run/secrets/gitlab_pullsecret) \
&& git clone https://github.com/hakimel/reveal.js.git reveal \
&& git clone https://:${PULLSECRET}@gitlab.puzzle.ch/pitc_members/pitc-revealjs-theme.git puzzle-theme \
&& git clone https://github.com/puzzle/pitc-revealjs-theme.git puzzle-theme \
&& mv puzzle-theme/css/theme/puzzle.css reveal/css/theme/ \
&& mv puzzle-theme/css/theme/source/puzzle.scss reveal/css/theme/source/ \
&& mv puzzle-theme/css/theme/source/puzzle-imgs reveal/css/theme/source/ \
Expand All @@ -23,6 +23,6 @@ RUN patch --forward --strip=1 index.html --input=index.html.patch \

RUN chgrp -R 0 ${NPM_CONFIG_CACHE} \
&& chmod -R g=u ${NPM_CONFIG_CACHE}

EXPOSE 8000
CMD ["npm", "start", "--", "--host=0.0.0.0"]

0 comments on commit 49eab64

Please sign in to comment.