Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
jscrobinson committed Oct 18, 2024
1 parent 02b3934 commit 88975ef
Showing 1 changed file with 10 additions and 32 deletions.
42 changes: 10 additions & 32 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,8 @@ jobs:
# root_dir: ./
# python_version: 3.12
# pipenv_version: 2023.12.1
- job: build_package
# dependsOn: set_versions
displayName: Build Package
steps:
- task: gitversion/setup@0
displayName: Install GitVersion
inputs:
versionSpec: 5.x
- task: gitversion/execute@0
displayName: Use GitVersion
- script: |
set -x
export PATH=$PATH:/home/vsts_azpcontainer/.local/bin
pip install pipx && pipx install poetry
poetry version $(GitVersion.SemVer)
poetry install
poetry build
poetry config pypi-token.pypi $(pypi_token)
cp -R ./dist $(Build.ArtifactStagingDirectory)/dist
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: "$(Build.ArtifactStagingDirectory)/dist"
ArtifactName: "dist"
publishLocation: "Container"
- job: build_glibc_2_28
dependsOn: build_package
# dependsOn: PythonTest
container: python:3.9.17-buster
displayName: Build for GLIBC 2.28
steps:
Expand Down Expand Up @@ -94,32 +70,34 @@ jobs:
ArtifactName: "croudtech-bootstrap"
publishLocation: "Container"

- job: GithubRelease
- job: BuildGithubRelease
dependsOn: build_glibc_latest
displayName: GithubRelease
displayName: Build and GithubRelease
steps:
- download: current
artifact: croudtech-bootstrap-debian-bullseye
- download: current
artifact: croudtech-bootstrap
- download: current
artifact: dist
- task: UsePythonVersion@0
name: set_python_version
displayName: Set Python Version
inputs:
versionSpec: '$(python_version)'
addToPath: true
architecture: x64
- task: gitversion/setup@0
displayName: Install GitVersion
inputs:
versionSpec: 5.x
- task: gitversion/execute@0
displayName: Use GitVersion
- script: |
set -x
cp $(Pipeline.Workspace)/dist/dist $(Build.ArtifactStagingDirectory) ./dist
export PATH=$PATH:/home/vsts_azpcontainer/.local/bin
pip install pipx && pipx install poetry
poetry version $(GitVersion.SemVer)
poetry self add "poetry-pyinstaller-plugin[plugin]"
poetry install
cp $(Pipeline.Workspace)/dist/dist $(Build.ArtifactStagingDirectory)
poetry build
poetry publish
cp $(Pipeline.Workspace)/croudtech-bootstrap/croudtech-bootstrap $(Build.ArtifactStagingDirectory)
cp $(Pipeline.Workspace)/croudtech-bootstrap-debian-bullseye/croudtech-bootstrap-debian-bullseye $(Build.ArtifactStagingDirectory)
Expand Down

0 comments on commit 88975ef

Please sign in to comment.