wip: feat(ci): Build docker container

This commit is contained in:
Rafael Epplée 2025-05-28 17:08:02 +02:00
parent dd77be0388
commit 61dc095498
No known key found for this signature in database
GPG key ID: B4EFE6DC59FAE118

View file

@ -8,6 +8,12 @@ services:
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
trigger:
event:
@ -95,11 +101,25 @@ steps:
- name: cache
path: /cache
- name: build & publish container?
image: docker:dind
volumes:
- name: dockersock
path: /var/run
commands:
- sleep 6 # give docker time to start
- docker build --tag git.local-it.org/ci-builder/mitgliederverwaltung:latest .
- docker login --username $DRONE_FORGEJO_ACCOUNT_USERNAME --password $DRONE_FORGEJO_ACCOUNT_PASSWORD git.local-it.org
- docker push git.local-it.org/ci-builder/mitgliederverwaltung:latest
volumes:
- name: cache
host:
path: /tmp/drone_cache
- name: dockersock
temp: {}
---
kind: pipeline
type: docker