Skip to content

Commit b28bab6

Browse files
authored
Update configure-ci-cd.md
A few tweaks here to update github action **Update actions to supported versions** ``` actionlint .github/workflows/hypernode-deploy.yml .github/workflows/hypernode-deploy.yml:16:15: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] | 16 | - uses: actions/checkout@v2 | ^~~~~~~~~~~~~~~~~~~ .github/workflows/hypernode-deploy.yml:17:15: the runner of "actions/cache@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] | 17 | - uses: actions/cache@v2 | ^~~~~~~~~~~~~~~~ ``` https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ **Add a retention limit to the deploy artifact** To keep storage costs under control **Add `run-name` for variable name This allows us to see which specific branch triggered the deployment from within the github actions UI
1 parent 0cdd9ea commit b28bab6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 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,8 +108,8 @@ 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@v3
112+
- uses: actions/cache@v3
111113
with:
112114
path: /tmp/composer-cache
113115
key: ${{ runner.os }}-composer
@@ -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,9 +143,9 @@ 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@v3
144147
- name: download build artifact
145-
uses: actions/download-artifact@v3
148+
uses: actions/download-artifact@v4
146149
with:
147150
name: deployment-build
148151
path: build/

0 commit comments

Comments
 (0)