using woodpecker credentials
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Andrew Davidson 2023-03-03 23:07:35 -08:00
parent 33c08fe5ba
commit c44630ee42
Signed by: amd
GPG key ID: F1199FC0A76BB402
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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