Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
mesonium
gajim
Commits
f5d7ee23
Commit
f5d7ee23
authored
2 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
ci: Move git setup into script
parent
54d4c9f8
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
.ci/prepare_git.sh
+9
-0
9 additions, 0 deletions
.ci/prepare_git.sh
.gitlab-ci.yml
+2
-14
2 additions, 14 deletions
.gitlab-ci.yml
with
11 additions
and
14 deletions
.ci/prepare_git.sh
0 → 100755
+
9
−
0
View file @
f5d7ee23
#!/bin/bash
eval
$(
ssh-agent
-s
)
echo
"
$2
"
|
tr
-d
'\r'
| ssh-add -
>
/dev/null
mkdir
-p
~/.ssh
chmod
700 ~/.ssh
ssh-keyscan
"
$1
"
>>
~/.ssh/known_hosts
git config
--global
user.email
"
$CI_GIT_USER_EMAIL
"
git config
--global
user.name
"
$CI_GIT_USER_USERNAME
"
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
2
−
14
View file @
f5d7ee23
...
...
@@ -128,14 +128,8 @@ deploy-flatpak:
rules
:
-
if
:
'
$CI_COMMIT_TAG'
before_script
:
-
eval $(ssh-agent -s)
-
echo "${FLATHUB_DEPLOY_KEY}" | tr -d '\r' | ssh-add - > /dev/null
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan github.com >> ~/.ssh/known_hosts
-
.ci/prepare_git.sh github.com ${FLATHUB_DEPLOY_KEY}
script
:
-
git config --global user.email "$CI_GIT_USER_EMAIL"
-
git config --global user.name "$CI_GIT_USER_USERNAME"
-
git clone git@github.com:flathub/org.gajim.Gajim.git
-
cd org.gajim.Gajim
-
mv ../flatpak/org.gajim.Gajim.yaml org.gajim.Gajim.yaml
...
...
@@ -152,14 +146,8 @@ publish-release:
rules
:
-
if
:
'
$CI_COMMIT_TAG'
before_script
:
-
eval $(ssh-agent -s)
-
echo "${WEBSITE_DEPLOY_KEY}" | tr -d '\r' | ssh-add - > /dev/null
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan dev.gajim.org >> ~/.ssh/known_hosts
-
.ci/prepare_git.sh dev.gajim.org ${WEBSITE_DEPLOY_KEY}
script
:
-
git config --global user.email "$CI_GIT_USER_EMAIL"
-
git config --global user.name "$CI_GIT_USER_USERNAME"
-
git clone git@dev.gajim.org:gajim/website.git
-
cd website
-
git checkout master
...
...
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