From b28bab6763e59575c3d0212884887a857e77ba2a Mon Sep 17 00:00:00 2001 From: Luke Rodgers Date: Wed, 1 Oct 2025 14:57:30 +0100 Subject: [PATCH 1/3] 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 --- .../getting-started/configure-ci-cd.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/hypernode-deploy/getting-started/configure-ci-cd.md b/docs/hypernode-deploy/getting-started/configure-ci-cd.md index e85c5999..6242955e 100644 --- a/docs/hypernode-deploy/getting-started/configure-ci-cd.md +++ b/docs/hypernode-deploy/getting-started/configure-ci-cd.md @@ -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 @@ -106,8 +108,8 @@ 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@v3 + - uses: actions/cache@v3 with: path: /tmp/composer-cache key: ${{ runner.os }}-composer @@ -122,6 +124,7 @@ jobs: with: name: deployment-build path: build/build.tgz + retention-days: 1 ``` ### Deploy step @@ -140,9 +143,9 @@ 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@v3 - name: download build artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: deployment-build path: build/ From e828ee629c7f130678be7c7046c5c2091ad1c35b Mon Sep 17 00:00:00 2001 From: Luke Rodgers Date: Sun, 5 Oct 2025 18:49:31 +0100 Subject: [PATCH 2/3] Update action versions --- .../getting-started/configure-ci-cd.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/hypernode-deploy/getting-started/configure-ci-cd.md b/docs/hypernode-deploy/getting-started/configure-ci-cd.md index 6242955e..45d58dcf 100644 --- a/docs/hypernode-deploy/getting-started/configure-ci-cd.md +++ b/docs/hypernode-deploy/getting-started/configure-ci-cd.md @@ -108,19 +108,19 @@ 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@v3 - - uses: actions/cache@v3 + - 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 @@ -143,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@v3 + - uses: actions/checkout@v5 - name: download build artifact - uses: actions/download-artifact@v4 + 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 From ab8ed7c4201b5e248ccf73e6eb8d5164b2a32b2e Mon Sep 17 00:00:00 2001 From: Luke Rodgers Date: Mon, 6 Oct 2025 11:30:14 +0100 Subject: [PATCH 3/3] Update configure-ci-cd.md --- docs/hypernode-deploy/getting-started/configure-ci-cd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hypernode-deploy/getting-started/configure-ci-cd.md b/docs/hypernode-deploy/getting-started/configure-ci-cd.md index 45d58dcf..c6032959 100644 --- a/docs/hypernode-deploy/getting-started/configure-ci-cd.md +++ b/docs/hypernode-deploy/getting-started/configure-ci-cd.md @@ -120,7 +120,7 @@ jobs: env: DEPLOY_COMPOSER_AUTH: ${{ secrets.DEPLOY_COMPOSER_AUTH }} - name: archive production artifacts - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v4 with: name: deployment-build path: build/build.tgz