Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Version 3.0.0-alpha.9 #451

Merged
merged 11 commits into from
Sep 16, 2023
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