node base image arm64 platform fix #13
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: | |
- publish_docker | |
jobs: | |
Deploy: | |
name: Deploy to Staging | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Deploy | |
env: | |
PRIVATE_KEY: ${{ secrets.DOCKER_SSH_PRIVATE_KEY }} | |
HOSTNAME: ec2-18-207-237-97.compute-1.amazonaws.com | |
USER_NAME: ec2-user | |
run: | | |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key | |
ssh -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOSTNAME} ' | |
chmod -R 755 /home/ec2-user/Apollo3 | |
chmod 755 /home/ec2-user/Apollo3/compose.yml | |
cd ~/Apollo3 | |
docker compose down | |
docker compose pull | |
docker compose up -d | |
' |