Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
maap-workspaces
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Administrator
maap-workspaces
Commits
656df649
Commit
656df649
authored
2 years ago
by
Administrator
Browse files
Options
Downloads
Patches
Plain Diff
Add generate-deploy-ops-stages.sh
parent
58d6d0ae
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generate-deploy-ops-stages.sh
+24
-0
24 additions, 0 deletions
generate-deploy-ops-stages.sh
with
24 additions
and
0 deletions
generate-deploy-ops-stages.sh
0 → 100644
+
24
−
0
View file @
656df649
set
-ex
touch
deploy.yml
echo
"Running CI for
${
TAG
}
"
if
[[
!
-z
"
${
TAG
}
"
]]
;
then
git clone
--single-branch
--branch
${
TAG
}
https://github.com/MAAP-Project/maap-workspaces.git
pushd
maap-workspaces
ls
-d
base_images/
*
/
*
>
${
basedir
}
/images.txt
popd
cat
${
basedir
}
/images.txt
template
=
"
${
basedir
}
/deploy.yml.tmpl"
cat
${
basedir
}
/images.txt |
while
read
image
do
if
[[
"
$image
"
==
base_images/
*
/
*
]]
;
then
second_dir
=
$(
echo
"
$image
"
|
cut
-d
'/'
-f2
)
export
BASE_IMAGE_TYPE
=
${
second_dir
}
export
TAG
=
${
TAG
}
export
DIT_REGISTRY
=
${
DIT_REGISTRY
}
cat
${
template
}
|
CI_JOB_TOKEN
=
'$CI_JOB_TOKEN'
envsubst
>>
deploy.yml
fi
done
fi
echo
"Generate stages.yaml"
cat
deploy.yml
||
true
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