Question

DevOps Challenge Day 6⚙️: Continuous Deployment (CD)

  • 11 October 2023
  • 3 replies
  • 52 views

Userlevel 7
Badge +2
  • Community Manager
  • 103 replies

Task: Set up a CD pipeline to automatically deploy your application to a testing environment when new code is pushed. 

  • Capture: A screenshot of the application deployed to the testing environment.


3 replies

Userlevel 5
Badge +4

 

Userlevel 5
Badge +4

Application deployed

 

https://relaxed-liger-854c1d.netlify.app/

Userlevel 5
Badge +3
Run actions/checkout@v2
with:
repository: xungoboss/shiftchallenge
token: ***
ssh-strict: true
persist-credentials: false
clean: true
fetch-depth: 1
lfs: false
submodules: false
Syncing repository: xungoboss/shiftchallenge
Getting Git version info
Deleting the contents of 'xungoboss/shiftchallenge'
Initializing the repository
[... Git output related to checkout ...]

Run echo "$PRIVATE_KEY" > private_key.pem
echo "$PRIVATE_KEY" > private_key.pem
chmod 600 private_key.pem
scp -i private_key.pem -r . USERNAME@SERVER_IP:/path/to/deployment/directory/
rm -f private_key.pem
shell: /usr/bin/bash -e {0}
[... Output related to the echo, chmod, scp, and rm commands ...]

Post job cleanup.
[... Cleanup logs ...]

Job completed with success/failure.

 

Reply