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

This commit is contained in:
Andrew Davidson 2023-03-03 22:53:07 -08:00
parent f4e5bb389f
commit 5b02e4c1f9
Signed by: amd
GPG key ID: F1199FC0A76BB402
2 changed files with 5 additions and 5 deletions

View file

@ -4,10 +4,10 @@ clone:
depth: 1 depth: 1
pipeline: pipeline:
build: build:
image: docker:20.10.16 # fix at least major here image: docker
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: secrets:
- PUSH_TOKEN=$${PUSH_TOKEN} - AUTH_TOKEN
commands: commands:
- /bin/sh build.sh - /bin/sh build.sh

View file

@ -24,8 +24,8 @@ docker buildx build \
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \ -t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
. .
echo "push token: $PUSH_TOKEN" echo "push token: $(cat /run/secrets/PUSH_TOKEN)"
echo "$PUSH_TOKEN" | docker login -u=$CONTAINER_USER --password-stdin $CONTAINER_HOST cat /run/secrets/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