Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #49 from kellerkinderDE/feature/HEIDELPAYSUPPORT-83
Browse files Browse the repository at this point in the history
Feature/heidelpaysupport 83
  • Loading branch information
sixer1182 authored Apr 1, 2021
2 parents 5a565cf + a100a0f commit 9874280
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
stages:
- setup
- test
- deploy
- package

cache:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9874280

Please sign in to comment.