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