populating PUSH_TOKEN
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Andrew Davidson 2023-03-03 23:02:49 -08:00
parent 66974fd712
commit f426e78880
Signed by: amd
GPG key ID: F1199FC0A76BB402
2 changed files with 3 additions and 8 deletions

View file

@ -7,11 +7,9 @@ pipeline:
image: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# commands:
# - echo $PUSH_TOKEN
environment:
- PUSH_TOKEN=$${PUSH_TOKEN}
secrets:
- PUSH_TOKEN
# secrets:
# - PUSH_TOKEN
commands:
- /bin/sh build.sh

View file

@ -24,9 +24,6 @@ docker buildx build \
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
.
echo "push token: $(cat /run/secrets/PUSH_TOKEN)"
echo "push token: $PUSH_TOKEN"
echo $PUSH_TOKEN | docker login -u=$CONTAINER_USER --password-stdin $CONTAINER_HOST
#docker push -a $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME
docker push -a $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME