Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inject-docs
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INJECT
inject-docs
Commits
26e67e1d
There was an error fetching the commit references. Please try again later.
Commit
26e67e1d
authored
9 months ago
by
Roman Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
reformat utilities and edit gitlab ci for testing purposes
parent
c2db0876
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-3
0 additions, 3 deletions
.gitlab-ci.yml
utilities.sh
+30
-1
30 additions, 1 deletion
utilities.sh
with
30 additions
and
4 deletions
.gitlab-ci.yml
+
0
−
3
View file @
26e67e1d
...
@@ -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
This diff is collapsed.
Click to expand it.
utilities.sh
+
30
−
1
View file @
26e67e1d
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment