Skip to main content
Kat
Employee
October 11, 2023
Question

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

  • October 11, 2023
  • 3 replies
  • 123 views

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

IOan
October 11, 2023

 

Do not forget to Rest then Test
IOan
October 16, 2023
Do not forget to Rest then Test
hungoboss
Specialist
October 16, 2023
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.