type: docker
kind: pipeline
name: "drone-dagger-test"

steps:
  - name: "build"
    image: harbor.front.kjuulh.io/kjuulh/dagger-go:1667159344332
    volumes:
      - name: dockersock
        path: /var/run
    environment:
      DOCKER_BUILDKIT: 1
      HARBOR_DOCKER_HOST: "harbor.front.kjuulh.io"
      HARBOR_DOCKER_USERNAME:
        from_secret: "harbor_docker_username"
      HARBOR_DOCKER_PASSWORD:
        from_secret: "harbor_docker_password"
    commands:
      - sleep 5
      - sh -c "/dagger-go build golangbin"

services:
  - name: docker
    image: docker:dind
    privileged: true
    volumes:
      - name: dockersock
        path: /var/run

volumes:
  - name: dockersock
    temp: {}

image_pull_secrets:
  - dockerconfig
