Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
a8303f9449 | |||
886093292a | |||
7906623f22 | |||
0b6acac35f | |||
be893c7683 | |||
c901f34a7a | |||
05858cc5cf |
45
.drone.yml
45
.drone.yml
@ -6,27 +6,22 @@ name: build-and-push-develop
|
||||
steps:
|
||||
|
||||
- name: docker build an publish
|
||||
image: upagge/docker-buildx:latest
|
||||
# https://hub.docker.com/r/library/docker
|
||||
image: hub.docker.struchkov.dev/docker:27.3.1-dind-alpine3.20
|
||||
environment:
|
||||
DOCKER_REGISTRY_TOKEN:
|
||||
from_secret: DOCKER_REGISTRY_TOKEN
|
||||
DOCKER_IMAGE_NAME:
|
||||
from_secret: DOCKER_IMAGE_NAME
|
||||
DOCKER_REGISTRY_USER:
|
||||
from_secret: DOCKER_REGISTRY_USER
|
||||
STRUCHKOV_DOCKER_IMAGE_NAME:
|
||||
from_secret: STRUCHKOV_DOCKER_IMAGE_NAME
|
||||
STRUCHKOV_DOCKER_REGISTRY_TOKEN:
|
||||
from_secret: STRUCHKOV_DOCKER_REGISTRY_TOKEN
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
commands:
|
||||
- sleep 15
|
||||
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- echo "$STRUCHKOV_DOCKER_REGISTRY_TOKEN" | docker login git.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- echo "$DOCKER_REGISTRY_TOKEN" | docker login hub.docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- docker buildx create --use
|
||||
- docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t "$DOCKER_IMAGE_NAME:develop" -t "git.struchkov.dev/$STRUCHKOV_DOCKER_IMAGE_NAME:develop" .
|
||||
- docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t "docker.struchkov.dev/samba:develop" .
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
@ -34,7 +29,8 @@ trigger:
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:20.10.22-dind-alpine3.17
|
||||
# https://hub.docker.com/r/library/docker
|
||||
image: hub.docker.struchkov.dev/docker:27.3.1-dind-alpine3.20
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
@ -43,6 +39,9 @@ services:
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
|
||||
image_pull_secrets:
|
||||
- DOCKER_AUTH
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
@ -51,27 +50,21 @@ name: build-and-push-release
|
||||
steps:
|
||||
|
||||
- name: docker build an publish
|
||||
image: upagge/docker-buildx:latest
|
||||
image: docker.struchkov.dev/docker-buildx:latest
|
||||
environment:
|
||||
DOCKER_REGISTRY_TOKEN:
|
||||
from_secret: DOCKER_REGISTRY_TOKEN
|
||||
DOCKER_IMAGE_NAME:
|
||||
from_secret: DOCKER_IMAGE_NAME
|
||||
DOCKER_REGISTRY_USER:
|
||||
from_secret: DOCKER_REGISTRY_USER
|
||||
STRUCHKOV_DOCKER_IMAGE_NAME:
|
||||
from_secret: STRUCHKOV_DOCKER_IMAGE_NAME
|
||||
STRUCHKOV_DOCKER_REGISTRY_TOKEN:
|
||||
from_secret: STRUCHKOV_DOCKER_REGISTRY_TOKEN
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
commands:
|
||||
- sleep 15
|
||||
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- echo "$STRUCHKOV_DOCKER_REGISTRY_TOKEN" | docker login git.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- echo "$DOCKER_REGISTRY_TOKEN" | docker login hub.docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- docker buildx create --use
|
||||
- docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t "$DOCKER_IMAGE_NAME:latest" -t "$DOCKER_IMAGE_NAME:$DRONE_TAG" -t "git.struchkov.dev/$STRUCHKOV_DOCKER_IMAGE_NAME:latest" -t "git.struchkov.dev/$STRUCHKOV_DOCKER_IMAGE_NAME:$DRONE_TAG" .
|
||||
- docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t "docker.struchkov.dev/samba:latest" -t "docker.struchkov.dev/samba:$DRONE_TAG" .
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
@ -79,7 +72,8 @@ trigger:
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:20.10.22-dind-alpine3.17
|
||||
# https://hub.docker.com/r/library/docker
|
||||
image: hub.docker.struchkov.dev/docker:27.3.1-dind-alpine3.20
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
@ -88,8 +82,13 @@ services:
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
|
||||
image_pull_secrets:
|
||||
- DOCKER_AUTH
|
||||
|
||||
# drone sign --save DockerFiles/samba
|
||||
---
|
||||
kind: signature
|
||||
hmac: 8cbec230fea28e3ebdaefe0d8d13e9bef855e7cc7207df01f7f7d8b3e80c803d
|
||||
hmac: 741aa984ddc4f94b2b35a8e473a83130545e51598ae64b549083b1fd8b20233a
|
||||
|
||||
...
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM alpine:latest
|
||||
FROM hub.docker.struchkov.dev/alpine:latest
|
||||
MAINTAINER Struchkov Mark <mark@struchkov.dev>
|
||||
|
||||
# Install samba
|
||||
|
@ -2,7 +2,7 @@ version: '3.4'
|
||||
|
||||
services:
|
||||
samba:
|
||||
image: upagge/samba
|
||||
image: docker.struchkov.dev/samba
|
||||
environment:
|
||||
TZ: 'EST5EDT'
|
||||
networks:
|
||||
|
Loading…
Reference in New Issue
Block a user