Skip to content

Commit

Permalink
created dirs for volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
leoBitto committed Oct 13, 2024
1 parent 799fb6e commit 08fce7b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,18 @@ jobs:
source: "./docker-compose.prod.yml"
target: "/opt/"

- name: Set lower case owner and repo names
run: |
echo "IMAGE_NAME=${{ env.REGISTRY }}/${{ github.repository }}" >>${GITHUB_ENV}
echo "IMAGE_NAME_LC=${IMAGE_NAME,,}" >>${GITHUB_ENV}
- name: Ensure directories for volumes exist
uses: appleboy/ssh-action@v0.1.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
sudo mkdir -p /opt/web/static
sudo mkdir -p /opt/web/media
sudo chown -R $USER:$USER /opt/web/static
sudo chown -R $USER:$USER /opt/web/media

- name: Pull containers from GHCR
uses: appleboy/ssh-action@v0.1.3
Expand Down

0 comments on commit 08fce7b

Please sign in to comment.