Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
exphost
exphost-helms
Commits
d5674b9b
Unverified
Commit
d5674b9b
authored
3 years ago
by
torgiren
Browse files
Options
Download
Email Patches
Plain Diff
add wait for deploy to sync
Signed-off-by:
Marcin Fabrykowski
<
git@fabrykowski.pl
>
parent
a383d614
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/gitlab-ci.yml
+10
-0
common/gitlab-ci.yml
with
10 additions
and
0 deletions
+10
-0
common/gitlab-ci.yml
+
10
-
0
View file @
d5674b9b
...
...
@@ -27,6 +27,8 @@ upload:
-
git config --global user.email "${GITLAB_USER_EMAIL}"
-
mkdir -p ~/.ssh
-
ssh-keyscan -t rsa gitlab.exphost.pl >> ~/.ssh/known_hosts
-
curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -o /usr/local/bin/kubectl
-
chmod +x /usr/local/bin/kubectl
script
:
-
export VERSION=$(git describe --tags)
-
git clone $repo repo
...
...
@@ -39,6 +41,14 @@ upload:
git commit -m "update by gitlab-ci" &&
git push
fi
-
wait_timeout =
60
-
for try in {1..60} do
state==$(kubectl -n argocd get applications "$waitapp" -o template='{{.status.health.status}},{{.status.sync.status}},{{.spec.source.targetRevision}}')
echo $state
[ "$state" == "Healthy,Synced,$$VERSION"] && break
sleep
5
done
-
[
$$try -lt 60
]
.deploy-to-git-subapp
:
extends
:
.deploy-to-git
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help