diff --git a/.gitea/workflows/test-self.yaml b/.gitea/workflows/test-self.yaml new file mode 100644 index 0000000..4c4e6bf --- /dev/null +++ b/.gitea/workflows/test-self.yaml @@ -0,0 +1,21 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is fuware be STG + +on: + push: + branches: [develop] + +jobs: + check: + runs-on: self-hosted + defaults: + run: + working-directory: /home/raysam/act-runner-host/repo + steps: + - run: git --version + - run: rm -rf fuware-fe + - run: git clone ssh://git@thamluu.synology.me:222/sam/fuware-be.git fuware-be + - name: run docker + working-directory: /home/raysam/act-runner-host/repo/fuware-be + run: git switch develop && docker compose up --build -d + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/docker-compose.yml b/docker-compose.yml index 5a0a26e..4ee6f1a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: dockerfile: Dockerfile restart: always volumes: - - fuware-data:/app/data/ + - /home/raysam/act-runner-host/repo/dbdetail:/app/data/ ports: - 16002:9000 environment: