Added secrets
This commit is contained in:
parent
a8c581a348
commit
deba419541
1 changed files with 2 additions and 0 deletions
|
@ -9,10 +9,12 @@ pipeline:
|
|||
privileged: true
|
||||
commands:
|
||||
- docker buildx build --no-cache -t dev.cat-enby.club/nikurasu/static-hoster:latest -t dev.cat-enby.club/nikurasu/static-hoster:v$CI_COMMIT_TAG -f dev/docker/images/production/Dockerfile .
|
||||
- docker login -u $USER -p $PASSWORD
|
||||
- docker push dev.cat-enby.club/nikurasu/static-hoster:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
when:
|
||||
event: tag
|
||||
secrets: [ user, password ]
|
||||
|
||||
branches: main
|
||||
|
|
Loading…
Reference in a new issue