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

40 lines
944 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 /image/docker.tgz
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin https://registry-1.docker.io/
- 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