gitea-attachements-proxy/.drone.yml
Garionion 509a3009c9
Some checks failed
continuous-integration/drone/push Build is failing
add flake support, build docker image with nix
2022-01-14 18:01:01 +01:00

40 lines
915 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) /image/docker.tgz
volumes:
- name: image
path: /image
- name: push docker image
image: docker:dind
volumes:
- name: image
path: /image
- 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/podman/podman.sock