This commit is contained in:
parent
f4e5bb389f
commit
5b02e4c1f9
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue