Draft
Conversation
Today we use GitHub Actions to build and deploy using Jenkins. This implements a deployment using GitHub Actions so we use a single environment. The design is to build the website just like we do in CI, but then set up SSH for rsync followed by the actual rsync. It introduces 3 secrets that are intended to be set as environment secrets: * `SSH_PRIVATE_KEY` * `SSH_KNOWN_HOSTS` * `DEPLOY_TARGET` Link: https://docs.github.com/en/actions/use-cases-and-examples/deploying/deploying-with-github-actions
ekohl
commented
Nov 28, 2024
| - name: Copy files | ||
| run: rsync --log-file "${rsync_log}" --log-file-format 'CHANGED %f' --archive --checksum --verbose --one-file-system --compress --stats --delete-after ./_site/ ${{ secrets.DEPLOY_TARGET }} | ||
| - name: Purge CDN | ||
| run: awk '/ CHANGED /{print $5}' "${rsync_log}" | xargs --no-run-if-empty fastly-purge 'https://theforeman.org/' |
Member
Author
There was a problem hiding this comment.
fastly-purge is not present now so moving to draft.
Member
|
Today this won't work, as we limit who is allowed to deploy the website: Not saying we should not change that, just that this requires more work, which I personally don't have the time for right now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Today we use GitHub Actions to build and deploy using Jenkins. This implements a deployment using GitHub Actions so we use a single environment.
The design is to build the website just like we do in CI, but then set up SSH for rsync followed by the actual rsync.
It introduces 3 secrets that are intended to be set as environment secrets:
SSH_PRIVATE_KEYSSH_KNOWN_HOSTSDEPLOY_TARGETLink: https://docs.github.com/en/actions/use-cases-and-examples/deploying/deploying-with-github-actions