File tree Expand file tree Collapse file tree 4 files changed +36
-34
lines changed
Expand file tree Collapse file tree 4 files changed +36
-34
lines changed Original file line number Diff line number Diff line change 18181919 required : false
2020 type : string
21+ failure_comment :
22+ required : false
23+ type : string
24+ failure_label :
25+ default : ' failed'
26+ required : false
27+ type : string
2128 label :
2229 default : ' dev'
2330 required : false
2431 type : string
32+ labels :
33+ default : false
34+ required : false
35+ type : boolean
36+ success_comment :
37+ required : false
38+ type : string
39+ success_label :
40+ default : ' successful'
41+ required : false
42+ type : string
2543 user :
2644 default : ' AutoDev Action'
2745 required : false
@@ -44,13 +62,18 @@ jobs:
4462 fetch-depth : 0
4563
4664 - name : Autodev
47- uses : staffbase/autodev-action@v1.2.3
65+ uses : staffbase/autodev-action@v1.4.0
4866 with :
4967 base : ${{ inputs.base }}
5068 branch : ${{ inputs.branch }}
5169 comments : ${{ inputs.comments }}
5270 email : ${{ inputs.email }}
71+ failure_comment : ${{ inputs.failure_comment }}
72+ failure_label : ${{ inputs.failure_label }}
5373 label : ${{ inputs.label }}
74+ labels : ${{ inputs.labels }}
5475 optimistic : true
76+ success_comment : ${{ inputs.success_comment }}
77+ success_label : ${{ inputs.success_label }}
5578 token : ${{ secrets.token }}
5679 user : ${{ inputs.user }}
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: GitOps
33on :
44 workflow_call :
55 inputs :
6+ dockerbuildargs :
7+ required : false
8+ type : string
9+ dockerbuildtarget :
10+ required : false
11+ type : string
612 gitopsdev :
713 required : false
814 type : string
@@ -36,18 +42,13 @@ jobs:
3642 - name : Checkout
3743 uses : actions/checkout@v3
3844
39- - uses : actions/checkout@v3
40- with :
41- repository : Staffbase/gitops-github-action
42- ref : v3
43- token : ${{ secrets.gitops_token }}
44- path : .github/gitops
45-
4645 - name : GitOps (build, push and deploy a new Docker image)
47- uses : ./.github/ gitops
46+ uses : Staffbase/ gitops-github-action@v3
4847 with :
4948 dockerusername : ${{ secrets.docker_username }}
5049 dockerpassword : ${{ secrets.docker_password }}
50+ dockerbuildargs : ${{ inputs.dockerbuildargs }}
51+ dockerbuildtarget : ${{ inputs.dockerbuildtarget }}
5152 dockerimage : ${{ inputs.image }}
5253 gitopstoken : ${{ secrets.gitops_token }}
5354 gitopsdev : ${{ inputs.gitopsdev }}
Original file line number Diff line number Diff line change 1010 required : false
1111 type : string
1212 secrets :
13- collector_key :
14- required : true
15- tagging_key :
16- required : true
1713 jira_url :
1814 required : true
1915 jira_token :
@@ -33,30 +29,14 @@ jobs:
3329 with :
3430 fetch-depth : 0
3531
36- - name : Checkout Staffbase/github-action-issue-id-collection
37- uses : actions/checkout@v3
38- with :
39- repository : Staffbase/github-action-issue-id-collection
40- ssh-key : ${{ secrets.collector_key }}
41- ref : master
42- path : github-action-issue-id-collection
43-
44- - name : Checkout Staffbase/github-action-jira-release-tagging
45- uses : actions/checkout@v3
46- with :
47- repository : Staffbase/github-action-jira-release-tagging
48- ssh-key : ${{ secrets.tagging_key }}
49- ref : master
50- path : github-action-jira-release-tagging
51-
52- - name : fetchTicketIds
32+ - name : Fetch ticket Ids
5333 id : fetchTicketIds
54- uses : . /github-action-issue-id-collection
34+ uses : Staffbase /github-action-issue-id-collection@v1.0.0
5535 env :
5636 TAG_MATCHER : ${{ inputs.tag_matcher }}
5737
5838 - name : Add release notes to JIRA tickets
59- uses : . /github-action-jira-release-tagging
39+ uses : Staffbase /github-action-jira-release-tagging@v1.0.0
6040 env :
6141 JIRA_BASEURL : ${{ secrets.jira_url }}
6242 JIRA_TOKEN : ${{ secrets.jira_token }}
Original file line number Diff line number Diff line change 7575 with:
7676 name: 'component name'
7777 secrets:
78- collector_key: ${{ <your-key> }}
79- tagging_key: ${{ <your-key> }}
8078 jira_url: ${{ <your-url> }}
8179 jira_token: ${{ <your-token> }}
8280 jira_email: ${{ <your-email> }}
You can’t perform that action at this time.
0 commit comments