Skip to content

Commit f9c6b76

Browse files
committed
Merge #451: Release Version 3.0.0-alpha.9
dd86755 release: version 3.0.0-alpha.9 (Cameron Garnham) c451a74 docs: update release process (Cameron Garnham) 82622c5 chore: update cargo lockfile (Cameron Garnham) de884dd develop: bump version 3.0.0-alpha.9-develop (Cameron Garnham) b990e77 docs: update release process (Cameron Garnham) 9fb75e4 ci: secret checks were unnecessary (Cameron Garnham) 4e116f5 github: add codeowners file (Cameron Garnham) Pull request description: ACKs for top commit: da2ce7: ACK 361ca7f Tree-SHA512: 5c2525e3f1e0f784b2d2e38bc28a69547286d453b16abd269c6be4b407b9d37048cd2aa889adefe79b714150967528dbfd645f48d77087ffd9ae13155f06c41f
2 parents e67de40 + 361ca7f commit f9c6b76

File tree

10 files changed

+110
-154
lines changed

10 files changed

+110
-154
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.github/**/* @torrust/maintainers

.github/workflows/container.yaml

+5-22
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454

5555
context:
5656
name: Context
57+
needs: test
5758
runs-on: ubuntu-latest
5859

5960
outputs:
@@ -97,29 +98,11 @@ jobs:
9798
echo "On a Forked Repository. Will Not Continue"
9899
fi
99100
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-
118101
publish_development:
119102
name: Publish (Development)
120103
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'
123106
runs-on: ubuntu-latest
124107

125108
steps:
@@ -156,8 +139,8 @@ jobs:
156139
publish_release:
157140
name: Publish (Release)
158141
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'
161144
runs-on: ubuntu-latest
162145

163146
steps:

.github/workflows/coverage.yaml

-18
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,9 @@ env:
1212
CARGO_TERM_COLOR: always
1313

1414
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-
3115
report:
3216
name: Report
3317
environment: coverage
34-
needs: secrets
35-
if: needs.secrets.outputs.continue == 'true'
3618
runs-on: ubuntu-latest
3719
env:
3820
CARGO_INCREMENTAL: "0"

.github/workflows/deployment.yaml

+2-20
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,8 @@ on:
66
- "releases/**/*"
77

88
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-
259
test:
2610
name: Test
27-
needs: secrets
28-
if: needs.secrets.outputs.continue == 'true'
2911
runs-on: ubuntu-latest
3012

3113
strategy:
@@ -49,7 +31,7 @@ jobs:
4931

5032
publish:
5133
name: Publish
52-
environment: crates-io-torrust
34+
environment: deployment
5335
needs: test
5436
runs-on: ubuntu-latest
5537

@@ -67,7 +49,7 @@ jobs:
6749
- id: publish
6850
name: Publish Crates
6951
env:
70-
CARGO_REGISTRY_TOKEN: "${{ secrets.CARGO_REGISTRY_TOKEN }}"
52+
CARGO_REGISTRY_TOKEN: "${{ secrets.TORRUST_UPDATE_CARGO_REGISTRY_TOKEN }}"
7153
run: |
7254
cargo publish -p torrust-tracker-contrib-bencode
7355
cargo publish -p torrust-tracker-located-error

0 commit comments

Comments
 (0)