Skip to content

Commit

Permalink
ne marche pas comme GitLab
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGeek committed Dec 6, 2023
1 parent ac2f526 commit ea8d8f9
Showing 1 changed file with 33 additions and 37 deletions.
70 changes: 33 additions & 37 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
# 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 * /home/alex/VDI-API-INSA

restart:
runs-on: self-hosted

steps:
- name: api-service restart
run: sudo systemctl restart api-vdi
- name: api-service status
run: sudo systemctl status api-vdi

# 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 * /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


0 comments on commit ea8d8f9

Please sign in to comment.