using woodpecker credentials
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
33c08fe5ba
commit
c44630ee42
2 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ pipeline:
|
|||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- PUSH_TOKEN=$${PUSH_TOKEN}
|
||||
- PUSH_USER=$${PUSH_USER}
|
||||
secrets:
|
||||
- PUSH_TOKEN
|
||||
- PUSH_USER
|
||||
commands:
|
||||
- /bin/sh build.sh
|
||||
|
|
2
build.sh
2
build.sh
|
@ -24,6 +24,6 @@ docker buildx build \
|
|||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
|
||||
.
|
||||
|
||||
echo $PUSH_TOKEN | docker login -u=$CONTAINER_USER --password-stdin $CONTAINER_HOST
|
||||
echo $PUSH_TOKEN | docker login -u=$PUSH_USER --password-stdin $CONTAINER_HOST
|
||||
|
||||
docker push -a $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME
|
||||
|
|
Loading…
Reference in a new issue