New DB #123
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Deploy | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: LS command | |
run: ls | |
- name: PWD command | |
run: pwd | |
- name: cp command | |
run: cp -r * /home/alex/VDI-API-INSA | |
- name: api-service restart | |
run: sudo systemctl restart api-vdi | |
- name: api-service status | |
run: sudo systemctl status api-vdi | |
- name: scheduler-service restart | |
run: sudo systemctl restart api-scheduler | |
- name: scheduler-service scheduler | |
run: sudo systemctl status api-scheduler | |