From 34eeb4dbb72c2150fbc45dc6b83e44054c7f49ed Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sat, 16 Dec 2023 16:33:00 +0100 Subject: [PATCH] use token variable and explicit commands for docker --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9200d248ce..4461fd37dc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -64,7 +64,7 @@ jobs: # tags: latest # displayName: 'Push release to GHCR' - script: | - docker login ghcr.io/autc04 -u autc04 -p $GHC_TOKEN + docker login ghcr.io/autc04 -u autc04 -p $(GHC_TOKEN) docker push ghcr.io/autc04/testimage - env: - GHCR_TOKEN: $(GHCR_TOKEN) + displayName: 'Push release to GHCR' + condition: and(succeeded(), ne(variables['GHCR_TOKEN'], ''))