Skip to content

Commit

Permalink
Undo release changes and adding extra information to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Mar 2, 2024
1 parent 18927fa commit 0039135
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ jobs:
name: Deploy over SSH
runs-on: ubuntu-latest
needs: [docker-push-userservice,docker-push-authservice,docker-push-gatewayservice,docker-push-webapp]
env:
IP_HOST: ${{ secrets.DEPLOY_HOST }}
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
Expand All @@ -128,6 +126,5 @@ jobs:
command: |
wget https://raw.githubusercontent.com/arquisoft/wiq_0/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_0/master/.env -O .env
export DOCKER_HOST_IP=$IP_HOST
docker compose --profile prod down
docker compose --profile prod up -d
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-
sudo chmod +x /usr/local/bin/docker-compose
```

After installing Docker, we need to set up a global environment variable to configure external container connectivity. This can be done by editing the /etc/environment file:

```bash
sudo nano /etc/environment
```

and adding the following line:

```bash
DOCKER_HOST_IP=[IP address of the remote machine]
```


### Continuous delivery (GitHub Actions)

Once we have our machine ready, we could deploy by hand the application, taking our docker-compose file and executing it in the remote machine.
Expand All @@ -108,7 +121,6 @@ deploy:
command: |
wget https://raw.githubusercontent.com/arquisoft/wiq_0/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_0/master/.env -O .env
export DOCKER_HOST_IP=${{ secrets.DEPLOY_HOST }}
docker compose --profile prod down
docker compose --profile prod up -d
```
Expand Down

0 comments on commit 0039135

Please sign in to comment.