-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
141cc49
commit bd63099
Showing
3 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Set the root directory where the services are located | ||
SERVICES_DIR="./services" | ||
|
||
# Initialize an empty matrix array | ||
MATRIX="[" | ||
|
||
# Loop through each subfolder in the 'services' directory | ||
for SERVICE in $(ls -d ${SERVICES_DIR}/*/); do | ||
# Extract the folder name without the path | ||
SERVICE_NAME=$(basename $SERVICE) | ||
|
||
# Append to the matrix JSON object | ||
MATRIX+="{\"service-name\": \"$SERVICE_NAME\"}," | ||
done | ||
|
||
# Remove the last comma and close the JSON array | ||
MATRIX=${MATRIX%,} | ||
MATRIX+="]" | ||
|
||
# Output the matrix in the format that GitHub Actions expects using Environment Files | ||
echo "matrix=$MATRIX" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="build image-dev" type="docker-deploy" factoryName="dockerfile" server-name="Docker"> | ||
<deployment type="dockerfile"> | ||
<settings> | ||
<option name="imageTag" value="utconnect-docs:dev-v1" /> | ||
<option name="buildArgs"> | ||
<list> | ||
<DockerEnvVarImpl> | ||
<option name="name" value="service_name" /> | ||
<option name="value" value="docs" /> | ||
</DockerEnvVarImpl> | ||
</list> | ||
</option> | ||
<option name="buildCliOptions" value="--progress=plain" /> | ||
<option name="buildOnly" value="true" /> | ||
<option name="sourceFilePath" value="Dockerfile-development" /> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |