version: v1.0 name: AlphaGeek Production Content Deployment Pipeline agent: machine: type: e1-standard-2 os_image: ubuntu1804 blocks: # Use Serverless to deploy to Production - name: Publish to Prod task: # Import the secret environment variables secrets: - name: alphageek-aws prologue: commands: - checkout - cache restore npm - cache restore node-modules-$(checksum package-lock.json) - cache restore public-$(find source -type f -exec cat {} + | checksum) jobs: - name: Deploy Content commands: - npm run deploy-prod-site # Run tests on the Production site - name: Test Production task: prologue: commands: - checkout - cache restore npm - cache restore node-modules-$(checksum package-lock.json) jobs: # Check that all links are valid - name: Test link validity commands: - npm run linkcheck-prod