diff options
author | Attila Szabó <ezkrg@ezkrg.me> | 2021-09-21 17:58:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 17:58:05 +0000 |
commit | 9b07aef84c46c0771be4e3d2f6a0d3c87945df14 (patch) | |
tree | b831e8217b7974e56f1c27ddc90527485823209d /.drone.yml | |
parent | use olm library from distrib (diff) | |
parent | delete whatsapp from alpine build (diff) | |
download | docker-bitlbee-libpurple-9b07aef84c46c0771be4e3d2f6a0d3c87945df14.tar.gz docker-bitlbee-libpurple-9b07aef84c46c0771be4e3d2f6a0d3c87945df14.zip |
Merge pull request #26 from ezkrg/debian
debian based image build
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 44 |
1 files changed, 41 insertions, 3 deletions
@@ -23,7 +23,7 @@ steps: - 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 buildx build --push --cache-from ezkrg/cache:bitlbee-libpurple --cache-to ezkrg/cache:bitlbee-libpurple -t ezkrg/bitlbee-libpurple:test --platform linux/amd64,linux/arm64,linux/armhf . + - 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 . - name: release image: docker:stable @@ -44,6 +44,40 @@ steps: event: - tag + - name: debian-test + image: ezkrg/buildx:latest + environment: + USER: + from_secret: DHU + PASSWORD: + from_secret: DHP + DOCKER_HOST: tcp://docker:2375 + commands: + - sleep 5 + - 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 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 . + + - name: debian-release + image: docker:stable + environment: + USER: + from_secret: DHU + PASSWORD: + from_secret: DHP + DOCKER_HOST: tcp://docker:2375 + commands: + - 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 + when: + event: + - tag + --- kind: pipeline type: docker @@ -53,7 +87,7 @@ clone: disable: true steps: - - name: telegram + - name: notification image: appleboy/drone-telegram:1.3.4 failure: ignore settings: @@ -66,12 +100,16 @@ steps: *{{repo.namespace}}/{{repo.name}}* [Pipeline #{{build.number}} has {{#success build.status}}passed{{else}}failed{{/success}} in {{duration build.started build.finished}}]({{build.link}}) {{#success build.status}}✅{{else}}❌{{/success}} *Branch:* [{{commit.branch}}](https://github.com/{{repo.namespace}}/{{repo.name}}/commits/{{commit.branch}}) *Commit:* [{{commit.message}}]({{commit.link}}) + when: + status: + - success + - failure depends_on: - docker --- kind: signature -hmac: 4d16b8fe931c702b0383aaacf4b3dfb28c60b69577f65cd07981a9d1eedbb730 +hmac: 7510d775f0f5a15c09e28e645dd8fa21151614749ce232922efc4188b98a5254 ... |