Initial push
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
janic 2022-05-18 23:04:12 +02:00
parent d84066ab58
commit 64746275e0
3 changed files with 69 additions and 0 deletions

51
.drone.yml Normal file
View File

@ -0,0 +1,51 @@
---
kind: pipeline
type: docker
name: Build AMD64
platform:
os: linux
arch: amd64
trigger:
branche:
- master
# event:
# - tag
steps:
- name: Harbor AMD64
image: plugins/docker # Check Entrypoint
privileged: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
settings:
username:
from_secret: harbor_username
password:
from_secret: harbor_password
repo: goharbor.voser.cloud/homelab/docker-buildx
registry: https://goharbor.voser.cloud
auto_tag: true
build_args:
- ARCH=amd64
dockerfile: ./Dockerfiles/Dockerfile
- name: Dockerhub AMD64
image: plugins/docker # Check Entrypoint
privileged: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: waaaaat/docker-buildx
auto_tag: true
build_args:
- ARCH=amd64
dockerfile: ./Dockerfiles/Dockerfile
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM docker:latest
ENV DOCKER_HOST=unix:///var/run/docker.sock
RUN wget https://github.com/docker/buildx/releases/download/v0.8.2/buildx-v0.8.2.linux-amd64
RUN mkdir -p ~/.docker/cli-plugins && mv buildx-v0.8.2.linux-amd64 ~/.docker/cli-plugins/docker-buildx && chmod a+x ~/.docker/cli-plugins/docker-buildx

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: "3.4"
services:
dd:
image: goharbor.voser.cloud/homelab/docker-buildx
environment:
DOCKER_CLI_EXPERIMENTAL: enabled
command: >
docker buildx version
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
build:
context: .