bump nordvpn to 5.0.0 #218
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: v3 v4 Image Builds from template | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| push: | |
| type: boolean | |
| default: true | |
| description: "push true/false" | |
| env: | |
| tbt_version3: "3.00" | |
| tbt_version4: "4.1.1" | |
| tbt_versiond: "4.1.1" | |
| twcv: "1.6.33" | |
| ticv: "1.8.0" | |
| jobs: | |
| getNordvpnVersions: | |
| runs-on: ubuntu-latest | |
| # Map a step output to a job output | |
| outputs: | |
| VERSION: ${{ steps.step2.outputs.VERSION }} | |
| push: ${{ steps.step2.outputs.push }} | |
| steps: | |
| - name: checkout code | |
| uses: actions/checkout@v6 | |
| id: step1 | |
| with: | |
| lfs: true | |
| - name: get local nordvpn client version | |
| id: step2 | |
| run: | | |
| if [ "${{ github.event_name }}" = "push" ]; then | |
| echo "push=true" >> "$GITHUB_OUTPUT" | |
| else | |
| # pour workflow_dispatch on lit l'input (par défaut true) | |
| echo "push=${{ github.event.inputs.push != '' && github.event.inputs.push || 'true' }}" >> "$GITHUB_OUTPUT" | |
| fi | |
| grep -oP "(?<=changelog\): )[^ ]+" README.md | tr -d ' ' | |
| echo "VERSION=$(grep -oP '(?<=changelog\): )[^ ]+' README.md | tr -d ' ')" >> "$GITHUB_OUTPUT" | |
| echo "$GITHUB_OUTPUT" | |
| cat "$GITHUB_OUTPUT" | |
| show_vars: | |
| runs-on: ubuntu-latest | |
| needs: getNordvpnVersions | |
| outputs: | |
| tbt_version3: ${{ env.tbt_version3 }} | |
| tbt_version4: ${{ env.tbt_version4 }} | |
| nversion: ${{ needs.getNordvpnVersions.outputs.VERSION }} | |
| twcv: ${{ env.twcv }} | |
| ticv: ${{ env.ticv }} | |
| push: 'true' #${{ needs.getNordvpnVersions.outputs.push }} | |
| steps: | |
| - name: "show vars" | |
| run: | | |
| echo "TBT_VERSION3=${tbt_version3},TBT_VERSION4=${tbt_version4}, VERSION=${VERSION}, TWCV=${twcv}, TICV=${ticv},push=${push}" | |
| echo "$GITHUB_OUTPUT" | |
| cat "$GITHUB_OUTPUT" | |
| build-v3-images: | |
| if: false #disable this step | |
| uses: ./.github/workflows/build-template.yml | |
| with: | |
| build-context: '.' | |
| tbt_version: ${{ needs.show_vars.outputs.tbt_version3 }} | |
| tag: "edgd1er/nordlynx-transmission:v3" | |
| version: ${{ needs.show_vars.outputs.nversion }} | |
| twcv: ${{ needs.show_vars.outputs.twcv }} | |
| ticv: ${{ needs.show_vars.outputs.ticv }} | |
| push: ${{ needs.show_vars.outputs.push }} | |
| secrets: inherit | |
| needs: | |
| - getNordvpnVersions | |
| - show_vars | |
| build-v4-images: | |
| uses: ./.github/workflows/build-template.yml | |
| with: | |
| build-context: '.' | |
| base_image: 'debian:13-slim' | |
| codename: 'trixie' | |
| tbt_version: ${{ needs.show_vars.outputs.tbt_version4 }} | |
| tag: "v4" | |
| version: ${{ needs.show_vars.outputs.nversion }} | |
| twcv: ${{ needs.show_vars.outputs.twcv }} | |
| ticv: ${{ needs.show_vars.outputs.ticv }} | |
| push: 'true' #${{ needs.show_vars.outputs.push }} | |
| deb: 0 # no deb built for trixie | |
| secrets: inherit | |
| needs: | |
| - getNordvpnVersions | |
| - show_vars | |
| build-v4-images-ubuntu: | |
| uses: ./.github/workflows/build-template.yml | |
| with: | |
| build-context: '.' | |
| base_image: 'ubuntu:24.04' | |
| codename: 'bookworm' | |
| tbt_version: ${{ needs.show_vars.outputs.tbt_version4 }} | |
| tag: "v4" | |
| version: ${{ needs.show_vars.outputs.nversion }} | |
| twcv: ${{ needs.show_vars.outputs.twcv }} | |
| ticv: ${{ needs.show_vars.outputs.ticv }} | |
| ptf: "linux/amd64,linux/arm64v8,linux/arm32/v7" | |
| push: 'true' #${{ needs.show_vars.outputs.push }} | |
| deb: 1 | |
| secrets: inherit | |
| needs: | |
| - getNordvpnVersions | |
| - show_vars | |
| build-v4dev-images: | |
| if: false # disabled as of 26/02/01 | |
| uses: ./.github/workflows/build-template.yml | |
| with: | |
| build-context: '.' | |
| base_image: 'ubuntu:24.04' | |
| codename: 'bookworm' | |
| tbt_version: "${{ needs.show_vars.outputs.tbt_versiond }}" | |
| tag: "dev" | |
| ptf: "linux/amd64,linux/arm64v8,linux/arm32/v7" | |
| version: ${{ needs.show_vars.outputs.nversion }} | |
| twcv: ${{ needs.show_vars.outputs.twcv }} | |
| ticv: ${{ needs.show_vars.outputs.ticv }} | |
| push: 'true' #${{ needs.show_vars.outputs.push }} | |
| deb: 1 | |
| secrets: inherit | |
| needs: | |
| - getNordvpnVersions | |
| - show_vars | |
| build-v4dev-images-ubuntu: | |
| if: false # disabled as of 26/02/01 | |
| uses: ./.github/workflows/build-template.yml | |
| with: | |
| build-context: '.' | |
| base_image: 'ubuntu:24.04' | |
| codename: 'bookworm' | |
| tbt_version: "${{ needs.show_vars.outputs.tbt_versiond }}" | |
| tag: "dev" | |
| ptf: "linux/amd64,linux/arm64v8,linux/arm32/v7" | |
| version: ${{ needs.show_vars.outputs.nversion }} | |
| twcv: ${{ needs.show_vars.outputs.twcv }} | |
| ticv: ${{ needs.show_vars.outputs.ticv }} | |
| push: 'true' #${{ needs.show_vars.outputs.push }} | |
| deb: 1 | |
| secrets: inherit | |
| needs: | |
| - getNordvpnVersions | |
| - show_vars |