Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
22d95d16
Verified
Commit
22d95d16
authored
6 months ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
fix: comment old code to avoid invalid config
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
f4301a8d
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-1.2.yml
+1
-1
1 addition, 1 deletion
gitlab-ci-1.2.yml
includes/deploy/demo.yml
+5
-8
5 additions, 8 deletions
includes/deploy/demo.yml
with
6 additions
and
9 deletions
gitlab-ci-1.2.yml
+
1
−
1
View file @
22d95d16
...
...
@@ -25,7 +25,7 @@ stages:
include
:
-
project
:
'
wpdesk/gitlab-ci'
ref
:
'
master
'
ref
:
'
feat/demo-deploy
'
file
:
-
'
/includes/prepare.yml'
-
'
/includes/translations.yml'
...
...
This diff is collapsed.
Click to expand it.
includes/deploy/demo.yml
+
5
−
8
View file @
22d95d16
...
...
@@ -67,11 +67,8 @@ deploy:demo:
-
rsync -rlDe "ssh -p $SSH_PORT" --delete "$CI_PROJECT_DIR/release/$CI_PROJECT_NAME" $SSH_DSN
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<${CI_PROJECT_URL}|${CI_PROJECT_NAME}>
zdeployowany
do
<${CI_ENVIRONMENT_URL}|${CI_ENVIRONMENT_NAME}>
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
deploy to demo octolize
:
<<
:
*job-deploy-template
before_script
:
-
echo "$DEMO_FS_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa_demo_fs
-
chmod 0600 ~/.ssh/id_rsa_demo_fs
-
echo "$SSH_KNOWN_HOSTS" | tr -d '\r' > ~/.ssh/known_hosts
script
:
-
ssh-keyscan -H -p 222 s125.cyber-folks.pl >> ~/.ssh/known_hosts
# deploy to demo octolize:
# before_script:
# - echo "$DEMO_FS_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa_demo_fs
# - chmod 0600 ~/.ssh/id_rsa_demo_fs
# - echo "$SSH_KNOWN_HOSTS" | tr -d '\r' > ~/.ssh/known_hosts
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