Skip to content

Commit 1b774d7

Browse files
authored
Merge pull request #413 from convenient/patch-1
Update configure-ci-cd.md
2 parents c009687 + ab8ed7c commit 1b774d7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/hypernode-deploy/getting-started/configure-ci-cd.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ on:
9090
branches:
9191
- 'master' # Your main/master/production branch
9292
- 'staging' # Your staging/acceptance branch
93+
94+
run-name: Build and deploy application – ${{ github.ref_name }}
9395
```
9496
9597
### Build step
@@ -106,12 +108,12 @@ jobs:
106108
# Here we use the latest Hypernode Deploy image with PHP 8.4 and Node.js 22
107109
container: quay.io/hypernode/deploy:latest-php8.4-node22
108110
steps:
109-
- uses: actions/checkout@v2
110-
- uses: actions/cache@v2
111+
- uses: actions/checkout@v5
112+
- uses: actions/cache@v4
111113
with:
112114
path: /tmp/composer-cache
113115
key: ${{ runner.os }}-composer
114-
- uses: webfactory/ssh-agent@v0.5.4
116+
- uses: webfactory/ssh-agent@v0.9.1
115117
with:
116118
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
117119
- run: hypernode-deploy build -vvv
@@ -122,6 +124,7 @@ jobs:
122124
with:
123125
name: deployment-build
124126
path: build/build.tgz
127+
retention-days: 1
125128
```
126129

127130
### Deploy step
@@ -140,13 +143,13 @@ jobs:
140143
# Here we use the latest Hypernode Deploy image with PHP 8.4 and Node.js 22
141144
container: quay.io/hypernode/deploy:latest-php8.4-node22
142145
steps:
143-
- uses: actions/checkout@v2
146+
- uses: actions/checkout@v5
144147
- name: download build artifact
145-
uses: actions/download-artifact@v3
148+
uses: actions/download-artifact@v5
146149
with:
147150
name: deployment-build
148151
path: build/
149-
- uses: webfactory/ssh-agent@v0.5.4
152+
- uses: webfactory/ssh-agent@v0.9.1
150153
with:
151154
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
152155
- run: mkdir -p $HOME/.ssh

0 commit comments

Comments
 (0)