gitea-attachements-proxy/.drone.yml
Garionion 666b66c24f
Some checks reported errors
continuous-integration/drone/push Build was killed
add flake support, build docker image with nix
2022-01-14 17:40:43 +01:00

40 lines
911 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build docker image
image: "nixos/nix"
environment:
USER: root
commands:
- nix-channel --update
- nix-build docker.nix
- cp $(readlink result) /result/docker.tgz
volumes:
- name: image
path: /result
- name: push docker image
image: docker:dind
volumes:
- name: image
path: /result
- name: dockersock
path: /var/run/docker.sock
commands:
- docker load -i /result/docker.tgz
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- docker push garionion/gitea-attachements-proxy
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
volumes:
- name: image
temp: {}
- name: dockersock
host:
path: /var/run/docker.sock