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