without comdition

This commit is contained in:
Wolfgang Thaller 2023-12-16 19:10:22 +01:00
parent 192081cd01
commit 3737404c4b

View File

@ -53,22 +53,22 @@ jobs:
# testResultsFormat: 'CTest' # testResultsFormat: 'CTest'
# testResultsFiles: build/Testing/**/*.xml # testResultsFiles: build/Testing/**/*.xml
# buildPlatform: 'x86_64-linux' # buildPlatform: 'x86_64-linux'
- task: Docker@2 # - task: Docker@2
inputs: # inputs:
command: login # command: login
containerRegistry: autc04-github-docker # containerRegistry: autc04-github-docker
displayName: Login to GHCR # displayName: Login to GHCR
- task: Docker@2 # - task: Docker@2
inputs: # inputs:
containerRegistry: autc04-github-docker # containerRegistry: autc04-github-docker
repository: autc04/testimage # repository: autc04/testimage
command: push # command: push
tags: latest # tags: latest
displayName: 'Push release to GHCR' # displayName: 'Push release to GHCR'
- script: | - script: |
docker login ghcr.io/autc04 -u autc04 -p $GHCR_TOKEN docker login ghcr.io/autc04 -u autc04 -p $GHCR_TOKEN
docker push ghcr.io/autc04/testimage docker push ghcr.io/autc04/testimage
env: env:
GHCR_TOKEN: $(GHCR_TOKEN) GHCR_TOKEN: $(GHCR_TOKEN)
displayName: 'Push release to GHCR' displayName: 'Push release to GHCR'
condition: and(succeeded(), ne(variables['GHCR_TOKEN'], '')) # condition: and(succeeded(), ne(variables['GHCR_TOKEN'], ''))