Skip to main content
Question

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


Kat
Forum|alt.badge.img+2
  • Community Manager

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.

IOan
Forum|alt.badge.img+5
  • Pilot
  • October 11, 2023

 


IOan
Forum|alt.badge.img+5
  • Pilot
  • October 16, 2023

hungoboss
Forum|alt.badge.img+3
  • 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.

 


Reply