mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
Trigger only amd64 builds for test branches
This commit is contained in:
parent
913e9ae49e
commit
2e99a2139a
1 changed files with 7 additions and 1 deletions
|
|
@ -62,6 +62,12 @@ jobs:
|
|||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
timeoutInMinutes: 0
|
||||
variables:
|
||||
# Do not run the heavy non-amd64 builds for test branches
|
||||
${{ if not(startsWith(variables['Build.SourceBranchName'], 'test-')) }}:
|
||||
ARCHS: amd64 arm64 armhf
|
||||
${{ if startsWith(variables['Build.SourceBranchName'], 'test-') }}:
|
||||
ARCHS: amd64
|
||||
steps:
|
||||
- script: |
|
||||
sudo apt-get update
|
||||
|
|
@ -81,7 +87,7 @@ jobs:
|
|||
git config --global user.name "$(Build.RequestedFor)"
|
||||
mkdir -p ~/.local/share/snapcraft/provider/launchpad
|
||||
cp $(credentials.secureFilePath) ~/.local/share/snapcraft/provider/launchpad/credentials
|
||||
python3 tools/snap/build_remote.py ALL --archs amd64 arm64 armhf
|
||||
python3 tools/snap/build_remote.py ALL --archs ${ARCHS}
|
||||
displayName: Build snaps
|
||||
- script: |
|
||||
mv *.snap $(Build.ArtifactStagingDirectory)
|
||||
|
|
|
|||
Loading…
Reference in a new issue