This commit is contained in:
parent
f76ec38345
commit
f3d31d28b1
1 changed files with 9 additions and 7 deletions
16
.drone.yml
16
.drone.yml
|
|
@ -16,18 +16,20 @@ steps:
|
||||||
- export BUILDER_ID="crosscomp-$(cat /proc/self/cgroup | head -1 | cut -d '/' -f 3)"
|
- export BUILDER_ID="crosscomp-$(cat /proc/self/cgroup | head -1 | cut -d '/' -f 3)"
|
||||||
- docker buildx create --use --name $BUILDER_ID --driver-opt image=stargate01/buildkit
|
- docker buildx create --use --name $BUILDER_ID --driver-opt image=stargate01/buildkit
|
||||||
- docker buildx inspect --bootstrap
|
- docker buildx inspect --bootstrap
|
||||||
- docker login --username $REGISTRY_USERNAME --password $REGISTRY_PASSWORD registry.thegibsonhome.net
|
- echo $REGISTRY_PASS | docker login --username $REGISTRY_USER --password-stdin $REGISTRY_HOST
|
||||||
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --output=type=image,push=true --progress tty -t registry.thegibsonhome.net/protonmail-bridge:latest .
|
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --output=type=image,push=true --progress tty --build-args TAG=$DRONE_TAG -t $REGISTRY_HOST/$IMAGE:$DRONE_TAG -t $REGISTRY_HOST/$IMAGE:latest .
|
||||||
- docker buildx rm $BUILDER_ID
|
- docker buildx rm $BUILDER_ID
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
REGISTRY_USERNAME:
|
IMAGE: protonmail-bridge
|
||||||
|
REGISTRY_HOST: registry.thegibsonhome.net
|
||||||
|
REGISTRY_USER:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
REGISTRY_PASSWORD:
|
REGISTRY_PASS:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
|
|
||||||
#trigger:
|
trigger:
|
||||||
# event:
|
event:
|
||||||
# - tag
|
- tag
|
||||||
Loading…
Add table
Add a link
Reference in a new issue