Compare commits

...

7 Commits

Author SHA1 Message Date
a8303f9449
update version
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-11 20:31:18 +03:00
886093292a
update version
All checks were successful
continuous-integration/drone/push Build is passing
2024-08-27 18:45:44 +03:00
7906623f22
update cicd
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-13 10:36:13 +03:00
0b6acac35f
fix cicd [skip ci]
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/tag Build is passing
2023-12-02 21:48:33 +03:00
be893c7683
fix docker-compose
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-12-02 21:35:05 +03:00
c901f34a7a
new cicd
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-02 21:32:50 +03:00
05858cc5cf
new cicd
Some checks failed
continuous-integration/drone/push Build is failing
2023-12-02 21:27:48 +03:00
3 changed files with 24 additions and 25 deletions

View File

@ -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
...

View File

@ -1,4 +1,4 @@
FROM alpine:latest
FROM hub.docker.struchkov.dev/alpine:latest
MAINTAINER Struchkov Mark <mark@struchkov.dev>
# Install samba

View File

@ -2,7 +2,7 @@ version: '3.4'
services:
samba:
image: upagge/samba
image: docker.struchkov.dev/samba
environment:
TZ: 'EST5EDT'
networks: