This commit is contained in:
parent
0d30bc1a07
commit
f2e37a8ee5
2 changed files with 4 additions and 2 deletions
|
@ -7,5 +7,7 @@ pipeline:
|
||||||
image: docker:20.10.16 # fix at least major here
|
image: docker:20.10.16 # fix at least major here
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
- PUSH_TOKEN=$PUSH_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: $PUSH_TOKEN"
|
||||||
|
|
||||||
docker login -u=amd -p=$push_token $CONTAINER_HOST
|
docker login -u=amd -p=$PUSH_TOKEN $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