File tree 10 files changed +110
-154
lines changed
10 files changed +110
-154
lines changed Original file line number Diff line number Diff line change
1
+ /.github /** /* @ torrust/maintainers
Original file line number Diff line number Diff line change 54
54
55
55
context :
56
56
name : Context
57
+ needs : test
57
58
runs-on : ubuntu-latest
58
59
59
60
outputs :
@@ -97,29 +98,11 @@ jobs:
97
98
echo "On a Forked Repository. Will Not Continue"
98
99
fi
99
100
100
- secrets :
101
- name : Secrets
102
- needs : [test, context]
103
- environment : dockerhub-torrust
104
- if : needs.context.outputs.continue == 'true'
105
- runs-on : ubuntu-latest
106
-
107
- outputs :
108
- continue : ${{ steps.check.outputs.continue }}
109
-
110
- steps :
111
- - id : check
112
- name : Check
113
- env :
114
- DOCKER_HUB_ACCESS_TOKEN : " ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}"
115
- if : " ${{ env.DOCKER_HUB_ACCESS_TOKEN != '' }}"
116
- run : echo "continue=true" >> $GITHUB_OUTPUT
117
-
118
101
publish_development :
119
102
name : Publish (Development)
120
103
environment : dockerhub-torrust
121
- needs : [secrets, context]
122
- if : needs.secrets .outputs.continue == 'true' && needs.context.outputs.type == 'development'
104
+ needs : context
105
+ if : needs.context .outputs.continue == 'true' && needs.context.outputs.type == 'development'
123
106
runs-on : ubuntu-latest
124
107
125
108
steps :
@@ -156,8 +139,8 @@ jobs:
156
139
publish_release :
157
140
name : Publish (Release)
158
141
environment : dockerhub-torrust
159
- needs : [secrets, context]
160
- if : needs.secrets .outputs.continue == 'true' && needs.context.outputs.type == 'release'
142
+ needs : context
143
+ if : needs.context .outputs.continue == 'true' && needs.context.outputs.type == 'release'
161
144
runs-on : ubuntu-latest
162
145
163
146
steps :
Original file line number Diff line number Diff line change 12
12
CARGO_TERM_COLOR : always
13
13
14
14
jobs :
15
- secrets :
16
- name : Secrets
17
- environment : coverage
18
- runs-on : ubuntu-latest
19
-
20
- outputs :
21
- continue : ${{ steps.check.outputs.continue }}
22
-
23
- steps :
24
- - id : check
25
- name : Check
26
- env :
27
- CODECOV_TOKEN : " ${{ secrets.CODECOV_TOKEN }}"
28
- if : " ${{ env.CODECOV_TOKEN != '' }}"
29
- run : echo "continue=true" >> $GITHUB_OUTPUT
30
-
31
15
report :
32
16
name : Report
33
17
environment : coverage
34
- needs : secrets
35
- if : needs.secrets.outputs.continue == 'true'
36
18
runs-on : ubuntu-latest
37
19
env :
38
20
CARGO_INCREMENTAL : " 0"
Original file line number Diff line number Diff line change 6
6
- " releases/**/*"
7
7
8
8
jobs :
9
- secrets :
10
- name : Secrets
11
- environment : crates-io-torrust
12
- runs-on : ubuntu-latest
13
-
14
- outputs :
15
- continue : ${{ steps.check.outputs.continue }}
16
-
17
- steps :
18
- - id : check
19
- name : Check
20
- env :
21
- CARGO_REGISTRY_TOKEN : " ${{ secrets.CARGO_REGISTRY_TOKEN }}"
22
- if : " ${{ env.CARGO_REGISTRY_TOKEN != '' }}"
23
- run : echo "continue=true" >> $GITHUB_OUTPUT
24
-
25
9
test :
26
10
name : Test
27
- needs : secrets
28
- if : needs.secrets.outputs.continue == 'true'
29
11
runs-on : ubuntu-latest
30
12
31
13
strategy :
49
31
50
32
publish :
51
33
name : Publish
52
- environment : crates-io-torrust
34
+ environment : deployment
53
35
needs : test
54
36
runs-on : ubuntu-latest
55
37
67
49
- id : publish
68
50
name : Publish Crates
69
51
env :
70
- CARGO_REGISTRY_TOKEN : " ${{ secrets.CARGO_REGISTRY_TOKEN }}"
52
+ CARGO_REGISTRY_TOKEN : " ${{ secrets.TORRUST_UPDATE_CARGO_REGISTRY_TOKEN }}"
71
53
run : |
72
54
cargo publish -p torrust-tracker-contrib-bencode
73
55
cargo publish -p torrust-tracker-located-error
You can’t perform that action at this time.
0 commit comments