This commit is contained in:
parent
a2a29d6faf
commit
50a1582b33
1 changed files with 7 additions and 9 deletions
|
|
@ -87,16 +87,14 @@ jobs:
|
|||
|
||||
- run: |
|
||||
tar xf build.tar.gz && rm build.tar.gz
|
||||
curl -LO https://deployer.org/deployer.phar
|
||||
mv deployer.phar /usr/local/bin/dep
|
||||
chmod +x /usr/local/bin/dep
|
||||
composer require deployer/deployer --dev
|
||||
|
||||
- run: apt-get update && apt-get install -y openssh-client rsync
|
||||
|
||||
- name: Upload release
|
||||
uses: deployphp/action@v1
|
||||
with:
|
||||
deployer-binary: "/usr/local/bin/dep"
|
||||
deployer-binary: "./bin/dep"
|
||||
dep: --file=${{ inputs.deployer_file }} release:create stage
|
||||
private-key: ${{ secrets.stage_key }}
|
||||
|
||||
|
|
@ -119,7 +117,9 @@ jobs:
|
|||
with:
|
||||
name: build-${{ github.sha }}
|
||||
|
||||
- run: tar xf build.tar.gz && rm build.tar.gz
|
||||
- run: |
|
||||
tar xf build.tar.gz && rm build.tar.gz
|
||||
composer require deployer/deployer --dev
|
||||
|
||||
- run: apt-get update && apt-get install -y openssh-client rsync
|
||||
|
||||
|
|
@ -200,15 +200,13 @@ jobs:
|
|||
|
||||
- run: |
|
||||
tar xf build.tar.gz && rm build.tar.gz
|
||||
curl -LO https://deployer.org/deployer.phar
|
||||
mv deployer.phar /usr/local/bin/dep
|
||||
chmod +x /usr/local/bin/dep
|
||||
composer require deployer/deployer --dev
|
||||
|
||||
- run: apt-get update && apt-get install -y openssh-client rsync
|
||||
|
||||
- name: Deploy to production
|
||||
uses: deployphp/action@v1
|
||||
with:
|
||||
deployer-binary: "/usr/local/bin/dep"
|
||||
deployer-binary: "./bin/dep"
|
||||
dep: --file=${{ inputs.deployer_file }} release:create production
|
||||
private-key: ${{ secrets.prod_key }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue