This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
-
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.
Merge pull request #49 from kellerkinderDE/feature/HEIDELPAYSUPPORT-83
Feature/heidelpaysupport 83
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
stages: | ||
- setup | ||
- test | ||
- deploy | ||
- package | ||
|
||
cache: | ||
|
@@ -82,6 +83,30 @@ shopware-validate: | |
- php /app/bin/pluginupload ext:zip . $CI_COMMIT_SHA | ||
- php /app/bin/pluginupload ext:validate *$CI_COMMIT_SHA.zip | ||
|
||
staging: | ||
image: "edbizarro/gitlab-ci-pipeline-php:7.2" | ||
stage: deploy | ||
environment: | ||
name: staging | ||
url: https://unzer-sw5.kellerkinder.io | ||
only: | ||
- master | ||
before_script: | ||
# Run ssh-agent (inside the build environment) | ||
- eval $(ssh-agent -s) | ||
|
||
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store | ||
- ssh-add <(echo "$SSH_PRIVATE_KEY") | ||
|
||
# For Docker builds disable host key checking. Be aware that by adding that | ||
# you are suspectible to man-in-the-middle attacks. | ||
# WARNING: Use this only with the Docker executor, if you use it with shell | ||
# you will overwrite your user's SSH config. | ||
- mkdir -p ~/.ssh | ||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' | ||
script: | ||
- ssh -A [email protected] 'cd /var/www/share/unzer-sw5.kellerkinder.io/htdocs/custom/plugins/HeidelPayment && git pull && /var/www/share/unzer-sw5.kellerkinder.io/htdocs/bin/console sw:cache:clear && /var/www/share/unzer-sw5.kellerkinder.io/htdocs/bin/console sw:plugin:refresh && /var/www/share/unzer-sw5.kellerkinder.io/htdocs/bin/console sw:plugin:uninstall HeidelPayment && /var/www/share/unzer-sw5.kellerkinder.io/htdocs/bin/console sw:plugin:install --activate HeidelPayment && /var/www/share/unzer-sw5.kellerkinder.io/htdocs/bin/console sw:theme:cache:generate' | ||
|
||
package: | ||
image: kellerkinder/shopware-package-plugin:latest | ||
stage: package | ||
|