This commit is contained in:
parent
d84066ab58
commit
64746275e0
51
.drone.yml
Normal file
51
.drone.yml
Normal 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
6
Dockerfile
Normal 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
12
docker-compose.yml
Normal 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: .
|
Loading…
Reference in New Issue
Block a user