wip: feat(ci): Build docker container

This commit is contained in:
Rafael Epplée 2025-05-28 17:08:02 +02:00 committed by Moritz
parent c1f9750972
commit 0eab45ebfd
Signed by: moritz
GPG key ID: 1020A035E5DD0824

View file

@ -8,6 +8,12 @@ services:
environment: environment:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
trigger: trigger:
event: event:
@ -95,11 +101,25 @@ steps:
- name: cache - name: cache
path: /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: volumes:
- name: cache - name: cache
host: host:
path: /tmp/drone_cache path: /tmp/drone_cache
- name: dockersock
temp: {}
--- ---
kind: pipeline kind: pipeline
type: docker type: docker