Skip to content

Commit

Permalink
Fix docker stack deploy (#59)
Browse files Browse the repository at this point in the history
* fix docker stack deploy

* fix
  • Loading branch information
khanzadimahdi authored Jan 2, 2025
1 parent 326221d commit d3bc4ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,16 @@ jobs:
# Ensure remote directory exists
ssh -q -i ~/ec2-key.pem -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $EC2_SSH_ENDPOINT > /dev/null 2>&1 << 'EOF'
export VOLUME_PATH="${{ secrets.VOLUME_PATH }}"
sudo mkdir -p /opt/deployment
sudo chown ${{ secrets.EC2_SSH_USER }}:${{ secrets.EC2_SSH_USER }} /opt/deployment
# create volumes directories
sudo mkdir -p $VOLUME_PATH/mongodb/db
sudo mkdir -p $VOLUME_PATH/mongodb/configdb
sudo mkdir -p $VOLUME_PATH/nats
sudo chown -R ${{ secrets.EC2_SSH_USER }}:${{ secrets.EC2_SSH_USER }} $VOLUME_PATH/*
EOF
# Copy files
Expand Down

0 comments on commit d3bc4ca

Please sign in to comment.