Skip to content

Commit

Permalink
Merge pull request #26 from rootcodelabs/dev
Browse files Browse the repository at this point in the history
Pulling changes from Dev to "User-authority-data" branch
  • Loading branch information
Thirunayan22 committed Jul 6, 2024
2 parents 6158a72 + fde0284 commit 1cfdc81
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/est-frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,31 @@ on:

jobs:
deploy:
runs-on: [self-hosted, est-cls-dev]
runs-on: [self-hosted, dev]

steps:
- name: Set permissions for workspace directory
run: |
sudo chown -R ubuntu:ubuntu /home/ubuntu/actions-runner/_work/classifier/classifier
sudo chmod -R u+rwx /home/ubuntu/actions-runner/_work/classifier/classifier
- name: Clean up workspace
run: |
sudo rm -rf /home/ubuntu/actions-runner/_work/classifier/classifier/*
- name: Checkout code
uses: actions/checkout@v3
with:
clean: true

- name: Remove all running containers, images, and prune Docker system
run: |
docker stop $(docker ps -a -q) || true
docker rm $(docker ps -a -q) || true
docker rmi $(docker images -q) || true
docker system prune -af
images_to_keep="authentication-layer|tim|data-mapper|resql|ruuter"
docker images --format "{{.Repository}}:{{.Tag}}" | grep -Ev "$images_to_keep" | xargs -r docker rmi || true
docker volume prune -f
docker network prune -f
- name: Build and run Docker Compose
run: |
Expand Down

0 comments on commit 1cfdc81

Please sign in to comment.