Skip to content

Commit

Permalink
fix: path to docker-build.yml in Docker workflow.
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <[email protected]>
  • Loading branch information
JasonLovesDoggo committed Jan 13, 2025
1 parent 69c3485 commit cc5220b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dmoj/scripts/copy_static
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

echo "Copying static files..."
echo "$COMPOSE_FLAGS"
echo pwd

if [ -z "$CI" ]; then # Not running in CI
bash /scripts/make_style.sh && \
Expand All @@ -16,9 +15,8 @@ if [ -z "$CI" ]; then # Not running in CI
cp 502.html /assets/ && \
cp logo.png /assets/ && \
cp robots.txt /assets/

else # in CI
docker compose "$COMPOSE_FLAGS" exec "$COMPOSE_EXEC_FLAGS" site /bin/bash -c "\
docker compose -f ./docker-build.yml exec "$COMPOSE_EXEC_FLAGS" site /bin/bash -c "\
bash make_style.sh && \
mkdir ./assets && \
python3 manage.py collectstatic --noinput && \
Expand All @@ -31,5 +29,4 @@ else # in CI
cp 502.html ./assets/ && \
cp logo.png ./assets/ && \
cp robots.txt ./assets/"

fi

0 comments on commit cc5220b

Please sign in to comment.