Skip to content
Snippets Groups Projects
Commit 26e67e1d authored by Roman Dvořák's avatar Roman Dvořák
Browse files

reformat utilities and edit gitlab ci for testing purposes

parent c2db0876
No related branches found
No related tags found
No related merge requests found
...@@ -15,11 +15,8 @@ pages: ...@@ -15,11 +15,8 @@ pages:
- pip install poetry==1.8.2 - pip install poetry==1.8.2
- poetry install - poetry install
- poetry run ./utilities.sh - poetry run ./utilities.sh
- poetry run mkdocs build --strict --verbose --site-dir public
artifacts: artifacts:
paths: paths:
- public - public
only:
- main
tags: tags:
- inject - inject
#!/usr/bin/env bash #!/usr/bin/env bash
# Enable debugging
set -x
# Initialize and update git submodules
git submodule init git submodule init
git submodule update --remote git submodule update --remote
# Check the status of the git submodules
git submodule status
# Create necessary directories
mkdir -p docs/tech mkdir -p docs/tech
mkdir -p files-from-repos mkdir -p files-from-repos
# Print the current directory structure
echo "Directory structure before copying files:"
ls -R
# Copy files to the respective directories
cp ./backend/definitions/README.md ./docs/tech/architecture/definitions.md cp ./backend/definitions/README.md ./docs/tech/architecture/definitions.md
cp ./backend/CHANGELOG.md ./docs/tech/architecture/CHANGELOG.md cp ./backend/CHANGELOG.md ./docs/tech/architecture/CHANGELOG.md
cp ./backend/openapi.yml ./docs/tech/api/openapi.yml cp ./backend/openapi.yml ./docs/tech/api/openapi.yml
cp ./frontend/docker/nginx-deployment/README.md ./files-from-repos/nginx-README.md cp ./frontend/docker/nginx-deployment/README.md ./files-from-repos/nginx-README.md
zip -r ./files-from-repos/deployment-files.zip ./frontend/docker/nginx-deployment/
\ No newline at end of file # Check if the files are copied correctly
echo "Directory structure after copying files:"
ls -R
# Zip the deployment files
zip -r ./files-from-repos/deployment-files.zip ./frontend/docker/nginx-deployment/
# Check if the zip operation was successful
if [ $? -eq 0 ]; then
echo "Zipping successful: ./files-from-repos/deployment-files.zip"
else
echo "Zipping failed"
exit 1
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment