feat: Build docker image in CI

This commit is contained in:
Georg Krause 2023-01-18 12:02:14 +01:00
parent 8d5676d0b2
commit 7ad318bc48
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22

23
.drone.yml Normal file
View File

@ -0,0 +1,23 @@
---
kind: pipeline
type: exec
name: build
platform:
os: linux
arch: arm64
steps:
- name: build
commands:
- docker build -t gcrkrause/mastodon-blocklist-deploy .
- name: push
environment:
USERNAME:
from_secret: docker-hub-user
PASSWORD:
from_secret: docker-hub-pw
commands:
- docker login -u $USERNAME -p $PASSWORD
- docker push gcrkrause/mastodon-blocklist-deploy
- docker image prune -a -f