feat: Build docker image in CI
continuous-integration/drone/push Build is passing Details

pull/7/head
Georg Krause 2023-01-18 12:02:14 +01:00
parent 8d5676d0b2
commit 7ad318bc48
Signed by: gcrkrause
GPG Key ID: 2970D504B2183D22
1 changed files with 23 additions and 0 deletions

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