Add safety check #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Production | ||
| on: workflow_dispatch | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| steps: | ||
| - name: Safety Check | ||
| run: echo " verifying that CI passed..." | ||
| - name: Mock SSH Connection | ||
| run: echo "Connecting to production server at 192.168.1.1..." | ||
| - name: Pull New Image | ||
| run: | | ||
| echo "Logging into Registry..." | ||
| echo "Pulling image ghcr.io/myname/app:latest..." | ||
| - name: Restart Application | ||
| run: | | ||
| echo "Stopping old container..." | ||
| echo "Starting new container..." | ||
| echo "Deployment Successful!" | ||