Skip to content

Commit

Permalink
azure-pipelines.yml get package version for tag
Browse files Browse the repository at this point in the history
  • Loading branch information
teddmason committed Jan 25, 2024
1 parent 3022fb2 commit 104aa7d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ pool:
vmImage: ubuntu-latest

steps:
# - task: NodeTool@0
# inputs:
# versionSpec: '18.x'
# displayName: 'Install Node.js'
- script: |
NPM_VERSION=$(node -p "require('./package.json').version")
echo $(NPM_VERSION)
displayName: 'Get package.json npm version'

- script: |
echo $(NPM_VERSION)
docker-compose -f docker/service.yml build
docker image ls
displayName: 'Create Docker image'
Expand All @@ -26,7 +27,7 @@ steps:
docker image ls
docker image tag $(CONTAINER_APP_NAME) $(CONTAINER_REGISTRY)/$(CONTAINER_APP_NAME)
docker image ls
docker push ${CONTAINER_REGISTRY}/${CONTAINER_APP_NAME}
docker push $(CONTAINER_REGISTRY)/$(CONTAINER_APP_NAME)


# - task: AzureWebAppContainer@1
Expand Down

0 comments on commit 104aa7d

Please sign in to comment.