-
Notifications
You must be signed in to change notification settings - Fork 32
Update configure-ci-cd.md #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Some nice improvements altogether :).
While we're at it, could you update the actions so they use the latest versions? For example:
actions/checkout
has v5actions/cache
has v4actions/download-artifact
has v5actions/upload-artifact
has v4webfactory/ssh-agent
has v0.9.1
Hey @tdgroot Just so i'm clear, do you mean actually update your actions within |
I assume it's the markdown files, thank you for confirming :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing left, other than that it's looking good! :)
DEPLOY_COMPOSER_AUTH: ${{ secrets.DEPLOY_COMPOSER_AUTH }} | ||
- name: archive production artifacts | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest major version of actions/upload-artifact
is v4
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed that typo
A few tweaks here to update github action
Update actions to supported versions
This action was also prohibited without an upgrade 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, by default aritfacts are stored for 90 days. A magento artifact can easilly be +500MB so these can add up quickly when deployments to staging are made.
Add
run-name
for variable nameThis allows us to see which specific branch triggered the deployment from within the github actions UI
You can see my image example

The top build was triggered with the following, which dynamically updates the run name based on the deployed branch.
This can be very useful for spotting production deploys in a sea of staging deployments.