Removing dependency #342
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: Build-sequential | |
on: | |
push: | |
branches: | |
- ft_trysequential | |
jobs: | |
tear-down: | |
name: Deploy over SSH | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy over SSH | |
uses: fifsky/ssh-action@master | |
with: | |
host: ${{ secrets.DEPLOY_HOST }} | |
user: ${{ secrets.DEPLOY_USER }} | |
key: ${{ secrets.DEPLOY_KEY }} | |
command: | | |
wget https://raw.githubusercontent.com/arquisoft/wiq_es05c/master/docker-compose.yml -O docker-compose.yml | |
wget https://raw.githubusercontent.com/arquisoft/wiq_es05c/master/.env -O .env | |
docker compose --profile prod down | |
e2e-tests: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm --prefix users/authservice install | |
- run: npm --prefix users/userservice install | |
- run: npm --prefix gatewayservice install | |
- run: npm --prefix historyservice install | |
- run: npm --prefix questionservice install | |
- run: npm --prefix roomservice install | |
- run: npm --prefix webapp install | |
- run: npm --prefix webapp run build | |
- run: npm --prefix webapp run test:e2e --runInBand | |
env : | |
CI : "" | |
deploy: | |
name: Deploy over SSH | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy over SSH | |
uses: fifsky/ssh-action@master | |
with: | |
host: ${{ secrets.DEPLOY_HOST }} | |
user: ${{ secrets.DEPLOY_USER }} | |
key: ${{ secrets.DEPLOY_KEY }} | |
command: | | |
wget https://raw.githubusercontent.com/arquisoft/wiq_es05c/master/docker-compose.yml -O docker-compose.yml | |
wget https://raw.githubusercontent.com/arquisoft/wiq_es05c/master/.env -O .env | |
docker compose --profile prod up -d --pull always |