-
Notifications
You must be signed in to change notification settings - Fork 14
Deploying Fastly VCL Snippets
George Haberis edited this page Jan 17, 2024
·
1 revision
We have the ability to add Fastly regular VCL snippets in code at https://github.com/guardian/support-frontend/tree/main/support-frontend/conf/fastly-snippets, and deploy via a Github action.
The action is named "Deploy Fastly Snippets". Note: There are 2 actions named "Deploy Fastly Snippets", one is deprecated and has been manually deployed, the active one can be accessed here.
![Screenshot 2023-11-09 at 17 14 29](https://private-user-images.githubusercontent.com/31692/281814121-d43b7294-bbd1-4b74-9d89-bc6ae4f15326.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODcwMDQsIm5iZiI6MTczODk4NjcwNCwicGF0aCI6Ii8zMTY5Mi8yODE4MTQxMjEtZDQzYjcyOTQtYmJkMS00Yjc0LTlkODktYmM2YWU0ZjE1MzI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAzNTE0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQxMDI3OGUxYWRhNmU5ZGU1NTM5Mzc3ZGM2MTJlM2EyNGYzYmJmOThhZjdmZjNiNmM2NzRlZDM1Mjg4YmJlZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JAgAg-E5HWzYOTjWmpwujCFAzSj4CLxFvSsi2Vb0EZQ)
The action's process is the standard Fastly process that we currently do via the Fastly console:
- Find the service's active version
- Clone this version
- Copy the snippet to that version
- Active that version
- Lock that version
- Commit your VCL snippets to a branch.
- Open the Deploy Fastly Snippets Github Action.
- Select the "Run worklflow" drop down, this will open a dialog. In this dialog you should be able to select your branch and the environment you wish to deploy to.
- There are 2 checkboxes in this dialog, we recommend you select both, however they can be unchecked if desired:
- Delete all Fastly snippets before deploying: Checking this ensures all snippets used are present in the repo, any snippet not in the repo will be removed if this is checked.
- Lock and activate the service version after snippets are deployed: Checking this will create a new version of the Fastly config and deploy it, leave this unchecked if you want to create a draft version in Fastly so you can check the draft before deployment.
- Click the "Run workflow" button, refresh the page to see your workflow run at the top of the page. Once complete your change should be ready to test.
- Redux Glossary
- Why Redux Toolkit?
- Writing state slices with Redux Toolkit
- Handling action side effects in Redux
- Presentational and Container Components
- Scoped actions and reducers
- Server Side Rendering
- Form validation
- CI build process
- Post deployment testing
- Post deployment test runbook
- TIP Real User Testing
- Code testing and validation
- Visual testing
- Testing Apple Pay locally
- Test Users
- Deploying to CODE
- Automated IT tests
- Deploying Fastly VCL Snippets
- Archived Components
- Authentication
- Switchboard
- How to make a fake contribution
- The epic and banner
- Environments
- Tech stack
- Supported browsers
- Contributions Internationalisation
- Payment method internationalisation in Guardian Weekly
- Print fulfilment/delivery
- Updating the acquisitions model
- Runscope testing
- Scala Steward for dependency management
- Alarm Investigations
- Ticker data
- Ophan
- Quantum Metric
- [Google Tag Manager] (https://github.com/guardian/support-frontend/wiki/Google-Tag-Manager)