try installing specific version of adv installer #1052
Workflow file for this run
This file contains 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: Build Installer | |
on: | |
pull_request: | |
branches: | |
- main | |
- 'release-*' | |
- 'beta-release-*' | |
- 'try-using-specific-adv-inst' | |
env: | |
BUILD_CONFIG: "Release" | |
BUILDNUMBER: ${{github.run_number}} | |
jobs: | |
build: | |
name: Build the Ziti Desktop Edge for Windows Installer Package | |
runs-on: windows-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
env: | |
SIGNING_CERT: ${{ secrets.SIGNING_CERT_2022_b64 }} | |
ADV_INST_KEY: ${{ secrets.ADV_INST_KEY }} | |
JFROG_ACCESS_TOKEN: ${{ secrets.JFROG_ACCESS_TOKEN }} | |
gh_ci_key: ${{ secrets.GH_CI_KEY }} | |
ZITI_DEBUG: "yes_please" | |
OPENZITI_P12_PASS: ${{ secrets.OPENZITI_P12_PASS }} | |
OPENZITI_P12: ${{ secrets.OPENZITI_P12 }} | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- uses: microsoft/setup-msbuild@v1 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
- if: github.event_name == 'push' | |
run: echo "GIT_BRANCH=$($env:GITHUB_REF.replace('refs/heads/', ''))" >> $env:GITHUB_ENV | |
- if: github.event_name == 'pull_request' | |
run: echo "GIT_BRANCH=$env:GITHUB_HEAD_REF" >> $env:GITHUB_ENV | |
- name: Setup secrets | |
run: | | |
echo "${env:SIGNING_CERT}" > WinSign.b64 | |
echo "${env:OPENZITI_P12}" > OPENZITI_P12.b64 | |
C:\Windows\System32\certutil.exe -decode WinSign.b64 Installer/WinSign.p12 | |
C:\Windows\System32\certutil.exe -decode OPENZITI_P12.b64 Installer/openziti.p12 | |
- name: Trying to run choco install. | |
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
- name: "Install Choco needs: wixtoolset ninja" | |
run: choco install wixtoolset ninja --yes | |
- name: Setting up ADV_INST_VERSION env var from adv-inst-version | |
run: echo "ADV_INST_VERSION=$(cat .\adv-inst-version)" >> $env:GITHUB_ENV | |
- name: "Install Choco needs: advanced-installer " | |
run: choco install advanced-installer --version="$(cat .\adv-inst-version)" --yes | |
- name: Setting up VERSION env var | |
run: echo "VERSION=$(cat .\version)" >> $env:GITHUB_ENV | |
- uses: nuget/setup-nuget@v1 | |
with: | |
nuget-api-key: ${{ secrets.NuGetAPIKey }} | |
nuget-version: '5.8.1' | |
- name: Restore nuget packages | |
run: nuget restore ZitiDesktopEdge.sln | |
- shell: pwsh | |
name: Register Advanced Installer | |
run: | | |
.\Installer\reg.ps1 -key "${env:ADV_INST_KEY}" | |
- if: github.ref == 'refs/heads/release-next' | |
name: Install ziti-ci | |
uses: netfoundry/ziti-ci@v1 | |
- if: github.ref == 'refs/heads/release-next' | |
name: Configure ziti-ci | |
run: C:\Users\runneradmin\go\bin\ziti-ci configure-git | |
- name: Build UI and Assemble Installer | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ziti_ci_gpg_key: ${{ secrets.ZITI_CI_GPG_KEY }} | |
ziti_ci_gpg_key_id: ${{ secrets.ZITI_CI_GPG_KEY_ID }} | |
run: powershell -File .\Installer\build.ps1 | |
- name: Upload installer onto job | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ZitiDesktopEdgeClient-${{ env.VERSION }} | |
path: "Installer/Output/Ziti Desktop Edge Client-*" | |
- name: Upload update json to job | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ZitiDesktopEdgeClient-${{ env.VERSION }} | |
path: ${{ env.VERSION }}.json | |
- name: Git Status | |
run: git status | |
- name: git diff | |
run: git diff DesktopEdge/Properties/AssemblyInfo.cs ZitiDesktopEdge.Client/Properties/AssemblyInfo.cs ZitiUpdateService/Properties/AssemblyInfo.cs Installer/ZitiDesktopEdge.aip | |