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.
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.
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.
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.