aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorezkrg <ezkrg@ezkrg.me>2021-09-23 13:01:21 +0000
committerezkrg <ezkrg@ezkrg.me>2021-09-23 13:01:21 +0000
commit397d549e6a4c6b8a941313bd20e7843268d45ec4 (patch)
tree8a30ba38719c478aa7f35f8dd161bc90372e205b /.drone.yml
parentseparate piplines (diff)
downloaddocker-bitlbee-libpurple-397d549e6a4c6b8a941313bd20e7843268d45ec4.tar.gz
docker-bitlbee-libpurple-397d549e6a4c6b8a941313bd20e7843268d45ec4.zip
change release process
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml34
1 files changed, 19 insertions, 15 deletions
diff --git a/.drone.yml b/.drone.yml
index 542a061..6091c9f 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -24,9 +24,12 @@ steps:
- docker buildx create --use --name docker --node docker --platform linux/amd64,linux/arm64,linux/armhf --driver docker-container $DOCKER_HOST
- echo $PASSWORD | docker login --username $USER --password-stdin
- docker buildx build --push --cache-from ezkrg/bitlbee-libpurple:cache --cache-to ezkrg/bitlbee-libpurple:cache -t ezkrg/bitlbee-libpurple:test --platform linux/amd64,linux/arm64,linux/armhf .
+ when:
+ event:
+ - push
- - name: release
- image: docker:stable
+ - name: latest
+ image: ezkrg/buildx:latest
environment:
USER:
from_secret: DHU
@@ -34,12 +37,11 @@ steps:
from_secret: DHP
DOCKER_HOST: tcp://docker:2375
commands:
+ - while ! docker info; do sleep 1; done
+ - docker run --rm --privileged tonistiigi/binfmt --install all
+ - docker buildx create --use --name docker --node docker --platform linux/amd64,linux/arm64,linux/armhf --driver docker-container $DOCKER_HOST
- echo $PASSWORD | docker login --username $USER --password-stdin
- - docker pull ezkrg/bitlbee-libpurple:test
- - docker tag ezkrg/bitlbee-libpurple:test ezkrg/bitlbee-libpurple:$DRONE_TAG
- - docker push ezkrg/bitlbee-libpurple:$DRONE_TAG
- - docker tag ezkrg/bitlbee-libpurple:test ezkrg/bitlbee-libpurple:latest
- - docker push ezkrg/bitlbee-libpurple:latest
+ - docker buildx build --push --cache-from ezkrg/bitlbee-libpurple:cache --cache-to ezkrg/bitlbee-libpurple:cache -t ezkrg/bitlbee-libpurple:$DRONE_TAG -t ezkrg/bitlbee-libpurple:latest --platform linux/amd64,linux/arm64,linux/armhf .
when:
event:
- tag
@@ -71,9 +73,12 @@ steps:
- docker buildx create --use --name docker --node docker --platform linux/amd64,linux/arm64,linux/armhf --driver docker-container $DOCKER_HOST
- echo $PASSWORD | docker login --username $USER --password-stdin
- docker buildx build --push --cache-from ezkrg/bitlbee-libpurple:debian-cache --cache-to ezkrg/bitlbee-libpurple:debian-cache -t ezkrg/bitlbee-libpurple:debian-test --platform linux/amd64,linux/arm64,linux/armhf -f Dockerfile.debian .
+ when:
+ event:
+ - push
- - name: release
- image: docker:stable
+ - name: latest
+ image: ezkrg/buildx:latest
environment:
USER:
from_secret: DHU
@@ -81,12 +86,11 @@ steps:
from_secret: DHP
DOCKER_HOST: tcp://docker:2375
commands:
+ - while ! docker info; do sleep 1; done
+ - docker run --rm --privileged tonistiigi/binfmt --install all
+ - docker buildx create --use --name docker --node docker --platform linux/amd64,linux/arm64,linux/armhf --driver docker-container $DOCKER_HOST
- echo $PASSWORD | docker login --username $USER --password-stdin
- - docker pull ezkrg/bitlbee-libpurple:debian-test
- - docker tag ezkrg/bitlbee-libpurple:debian-test ezkrg/bitlbee-libpurple:debian-$DRONE_TAG
- - docker push ezkrg/bitlbee-libpurple:debian-$DRONE_TAG
- - docker tag ezkrg/bitlbee-libpurple:debian-test ezkrg/bitlbee-libpurple:debian-latest
- - docker push ezkrg/bitlbee-libpurple:debian-latest
+ - docker buildx build --push --cache-from ezkrg/bitlbee-libpurple:debian-cache --cache-to ezkrg/bitlbee-libpurple:debian-cache -t ezkrg/bitlbee-libpurple:debian-$DRONE_TAG -t ezkrg/bitlbee-libpurple:debian-latest --platform linux/amd64,linux/arm64,linux/armhf -f Dockerfile.debian .
when:
event:
- tag
@@ -125,6 +129,6 @@ depends_on:
---
kind: signature
-hmac: 62c506a9cce77566ce1ff689c8bcf72fd235fd9d4d402e264257d57f4e909bc3
+hmac: e51bb8ccb6f602e0f02e6bd0e9dfd8456c4655c4bb299fc64a10c8b162294544
...