Skip to content

Commit

Permalink
adjusted docker network
Browse files Browse the repository at this point in the history
  • Loading branch information
Unischneider committed Oct 25, 2024
1 parent b190095 commit f8f9ad2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Check if Docker network exists and create it if not
run: |
if ! docker network inspect angelos-network >/dev/null 2>&1; then
echo "Network 'angelos-network' does not exist, creating it..."
docker network create angelos-network
else
echo "Network 'angelos-network' already exists."
fi

- name: Build and Push to GitHub Container Registry
uses: docker/build-push-action@v6
Expand Down Expand Up @@ -77,4 +68,9 @@ jobs:
proxy_key: ${{ secrets.DEPLOYMENT_GATEWAY_SSH_KEY }}
proxy_port: ${{ vars.DEPLOYMENT_GATEWAY_PORT }}
script: |
if ! docker network inspect angelos-network >/dev/null 2>&1; then
echo "Network 'angelos-network' does not exist, creating it..."
docker network create angelos-network
fi
docker network ls
docker compose -f /home/${{ vars.VM_USERNAME }}/${{ github.repository }}/docker-compose.yml up --pull=always -d

0 comments on commit f8f9ad2

Please sign in to comment.