Skip to content

Commit

Permalink
Merge #451: Release Version 3.0.0-alpha.9
Browse files Browse the repository at this point in the history
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
  • Loading branch information
da2ce7 committed Sep 16, 2023
2 parents e67de40 + 361ca7f commit f9c6b76
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 154 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.github/**/* @torrust/maintainers
27 changes: 5 additions & 22 deletions .github/workflows/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:

context:
name: Context
needs: test
runs-on: ubuntu-latest

outputs:
Expand Down Expand Up @@ -97,29 +98,11 @@ jobs:
echo "On a Forked Repository. Will Not Continue"
fi
secrets:
name: Secrets
needs: [test, context]
environment: dockerhub-torrust
if: needs.context.outputs.continue == 'true'
runs-on: ubuntu-latest

outputs:
continue: ${{ steps.check.outputs.continue }}

steps:
- id: check
name: Check
env:
DOCKER_HUB_ACCESS_TOKEN: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}"
if: "${{ env.DOCKER_HUB_ACCESS_TOKEN != '' }}"
run: echo "continue=true" >> $GITHUB_OUTPUT

publish_development:
name: Publish (Development)
environment: dockerhub-torrust
needs: [secrets, context]
if: needs.secrets.outputs.continue == 'true' && needs.context.outputs.type == 'development'
needs: context
if: needs.context.outputs.continue == 'true' && needs.context.outputs.type == 'development'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -156,8 +139,8 @@ jobs:
publish_release:
name: Publish (Release)
environment: dockerhub-torrust
needs: [secrets, context]
if: needs.secrets.outputs.continue == 'true' && needs.context.outputs.type == 'release'
needs: context
if: needs.context.outputs.continue == 'true' && needs.context.outputs.type == 'release'
runs-on: ubuntu-latest

steps:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,9 @@ env:
CARGO_TERM_COLOR: always

jobs:
secrets:
name: Secrets
environment: coverage
runs-on: ubuntu-latest

outputs:
continue: ${{ steps.check.outputs.continue }}

steps:
- id: check
name: Check
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
if: "${{ env.CODECOV_TOKEN != '' }}"
run: echo "continue=true" >> $GITHUB_OUTPUT

report:
name: Report
environment: coverage
needs: secrets
if: needs.secrets.outputs.continue == 'true'
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: "0"
Expand Down
22 changes: 2 additions & 20 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,8 @@ on:
- "releases/**/*"

jobs:
secrets:
name: Secrets
environment: crates-io-torrust
runs-on: ubuntu-latest

outputs:
continue: ${{ steps.check.outputs.continue }}

steps:
- id: check
name: Check
env:
CARGO_REGISTRY_TOKEN: "${{ secrets.CARGO_REGISTRY_TOKEN }}"
if: "${{ env.CARGO_REGISTRY_TOKEN != '' }}"
run: echo "continue=true" >> $GITHUB_OUTPUT

test:
name: Test
needs: secrets
if: needs.secrets.outputs.continue == 'true'
runs-on: ubuntu-latest

strategy:
Expand All @@ -49,7 +31,7 @@ jobs:

publish:
name: Publish
environment: crates-io-torrust
environment: deployment
needs: test
runs-on: ubuntu-latest

Expand All @@ -67,7 +49,7 @@ jobs:
- id: publish
name: Publish Crates
env:
CARGO_REGISTRY_TOKEN: "${{ secrets.CARGO_REGISTRY_TOKEN }}"
CARGO_REGISTRY_TOKEN: "${{ secrets.TORRUST_UPDATE_CARGO_REGISTRY_TOKEN }}"
run: |
cargo publish -p torrust-tracker-contrib-bencode
cargo publish -p torrust-tracker-located-error
Expand Down
Loading

0 comments on commit f9c6b76

Please sign in to comment.