try with service connection again

This commit is contained in:
Wolfgang Thaller 2023-12-16 17:02:16 +01:00
parent 34eeb4dbb7
commit e2143c9c20

View File

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