mirror of
https://github.com/autc04/Retro68.git
synced 2025-04-02 10:29:50 +00:00
use variable group
This commit is contained in:
parent
e2143c9c20
commit
192081cd01
@ -7,6 +7,8 @@ jobs:
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
timeoutInMinutes: 90
|
||||
variables:
|
||||
- group: Tokens
|
||||
steps:
|
||||
- checkout: self
|
||||
submodules: true
|
||||
@ -63,8 +65,10 @@ jobs:
|
||||
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
|
||||
# displayName: 'Push release to GHCR'
|
||||
# condition: and(succeeded(), ne(variables['GHCR_TOKEN'], ''))
|
||||
- script: |
|
||||
docker login ghcr.io/autc04 -u autc04 -p $GHCR_TOKEN
|
||||
docker push ghcr.io/autc04/testimage
|
||||
env:
|
||||
GHCR_TOKEN: $(GHCR_TOKEN)
|
||||
displayName: 'Push release to GHCR'
|
||||
condition: and(succeeded(), ne(variables['GHCR_TOKEN'], ''))
|
||||
|
Loading…
x
Reference in New Issue
Block a user