-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (30 loc) · 1013 Bytes
/
main.yml
File metadata and controls
31 lines (30 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# manual commit
name: dts-test-publish-deploy
on:
push:
branches:
- master
- develop
paths:
- 'add-ons/**'
- 'odoo.conf'
- 'Dockerfile'
jobs:
publish_Deploy_Develop:
name: Publish and Deploy
if: github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
steps:
- name: jenkins deployment
uses: wei/curl@v1
with:
args: -X POST https://jenkins.covid-dev.dts-stn.com/job/HRM-Odoo-Docker-Build/build?token=${{ secrets.DTS_COVID_JENKINS_TOKEN }} --insecure --user jenkinsbot:${{ secrets.DTS_COVID_JENKINSBOT_TOKEN }}
publish_Deploy_Staging:
name: Publish and Deploy
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: jenkins deployment
uses: wei/curl@v1
with:
args: -X POST https://jenkins.covid-dev.dts-stn.com/job/HRM-Odoo-Docker-Build-Staging/build?token=${{ secrets.DTS_COVID_JENKINS_TOKEN }} --insecure --user jenkinsbot:${{ secrets.DTS_COVID_JENKINSBOT_TOKEN }}