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
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
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
<?php | |
declare(strict_types=1); | |
namespace Deployer; | |
// Include base recipes | |
require 'recipe/common.php'; | |
require 'contrib/cachetool.php'; | |
require 'contrib/rsync.php'; |
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
{ | |
"extends": [ | |
"config:recommended", | |
":disableMajorUpdates" | |
], | |
"enabledManagers": [ | |
"composer" | |
], | |
"packageRules": [ | |
{ |
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
{ | |
"extends": [ | |
"config:recommended", | |
":disableMajorUpdates" | |
], | |
"enabledManagers": [ | |
"composer" | |
], | |
"packageRules": [ | |
{ |
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
hosts: | |
production: | |
hostname: 'IP' | |
remote_user: 'USERNAME' | |
port: 22 | |
deploy_path: '/home/www/projekt/production' | |
staging: | |
hostname: 'IP' | |
remote_user: 'USERNAME' |
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
# Definieren eines Ankers für gemeinsame Konfigurationen | |
.deploy_template: &deploy_template | |
stage: deploy | |
image: php:8.3-cli | |
before_script: | |
# Installieren notwendiger Tools und Abhängigkeiten | |
- apt-get update && apt-get install -y git unzip libzip-dev libicu-dev libonig-dev rsync openssh-client | |
# Installieren und Aktivieren von PHP-Erweiterungen | |
- docker-php-ext-install mbstring intl zip | |
# Installieren von Composer |
OlderNewer