index.php v2 #2
@ -5,8 +5,20 @@ steps:
|
||||
# commands:
|
||||
# - echo "Woodpecker is working!"
|
||||
|
||||
# PHPのLintテスト
|
||||
# PHP構文チェック
|
||||
php-lint:
|
||||
image: php:8.3-cli
|
||||
commands:
|
||||
- find . -name "*.php" -print0 | xargs -0 -n1 php -l
|
||||
|
||||
# 本番デプロイ
|
||||
deploy:
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add --no-cache openssh-client
|
||||
- ssh ec2-user@gitea.mitchecp.com "cd /home/ec2-user && touch aaa.txt"
|
||||
when:
|
||||
branch:
|
||||
- develop
|
||||
event:
|
||||
- push
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user