Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions docs/hypernode-deploy/getting-started/configure-ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ on:
branches:
- 'master' # Your main/master/production branch
- 'staging' # Your staging/acceptance branch

run-name: Build and deploy application – ${{ github.ref_name }}
```

### Build step
Expand All @@ -106,22 +108,23 @@ jobs:
# Here we use the latest Hypernode Deploy image with PHP 8.4 and Node.js 22
container: quay.io/hypernode/deploy:latest-php8.4-node22
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v5
- uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-composer
- uses: webfactory/ssh-agent@v0.5.4
- uses: webfactory/ssh-agent@v0.9.1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- run: hypernode-deploy build -vvv
env:
DEPLOY_COMPOSER_AUTH: ${{ secrets.DEPLOY_COMPOSER_AUTH }}
- name: archive production artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: deployment-build
path: build/build.tgz
retention-days: 1
```

### Deploy step
Expand All @@ -140,13 +143,13 @@ jobs:
# Here we use the latest Hypernode Deploy image with PHP 8.4 and Node.js 22
container: quay.io/hypernode/deploy:latest-php8.4-node22
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- name: download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v5
with:
name: deployment-build
path: build/
- uses: webfactory/ssh-agent@v0.5.4
- uses: webfactory/ssh-agent@v0.9.1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- run: mkdir -p $HOME/.ssh
Expand Down