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

This commit is contained in:
Struchkov Mark 2023-12-02 21:27:48 +03:00
parent c7aa917596
commit 05858cc5cf
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
2 changed files with 18 additions and 12 deletions

View File

@ -6,7 +6,7 @@ name: build-and-push-develop
steps: steps:
- name: docker build an publish - name: docker build an publish
image: upagge/docker-buildx:latest image: docker.struchkov.dev/docker-buildx:latest
environment: environment:
DOCKER_REGISTRY_TOKEN: DOCKER_REGISTRY_TOKEN:
from_secret: DOCKER_REGISTRY_TOKEN from_secret: DOCKER_REGISTRY_TOKEN
@ -23,10 +23,10 @@ steps:
path: /var/run path: /var/run
commands: commands:
- sleep 15 - sleep 15
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin - echo "$DOCKER_REGISTRY_TOKEN" | docker login 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 - echo "$DOCKER_REGISTRY_TOKEN" | docker login hub.docker.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_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_IMAGE_NAME:develop" -t "docker.struchkov.dev/samba:develop" .
trigger: trigger:
branch: branch:
@ -34,7 +34,7 @@ trigger:
services: services:
- name: docker - name: docker
image: docker:20.10.22-dind-alpine3.17 image: hub.docker.struchkov.dev/docker:24.0.7-dind-alpine3.18
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: dockersock
@ -43,6 +43,9 @@ services:
volumes: volumes:
- name: dockersock - name: dockersock
temp: {} temp: {}
image_pull_secrets:
- DOCKER_AUTH
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -51,7 +54,7 @@ name: build-and-push-release
steps: steps:
- name: docker build an publish - name: docker build an publish
image: upagge/docker-buildx:latest image: docker.struchkov.dev/docker-buildx:latest
environment: environment:
DOCKER_REGISTRY_TOKEN: DOCKER_REGISTRY_TOKEN:
from_secret: DOCKER_REGISTRY_TOKEN from_secret: DOCKER_REGISTRY_TOKEN
@ -68,10 +71,10 @@ steps:
path: /var/run path: /var/run
commands: commands:
- sleep 15 - sleep 15
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin - echo "$DOCKER_REGISTRY_TOKEN" | docker login 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 - echo "$DOCKER_REGISTRY_TOKEN" | docker login hub.docker.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_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: trigger:
ref: ref:
@ -79,7 +82,7 @@ trigger:
services: services:
- name: docker - name: docker
image: docker:20.10.22-dind-alpine3.17 image: hub.docker.struchkov.dev/docker:24.0.7-dind-alpine3.18
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: dockersock
@ -88,8 +91,11 @@ services:
volumes: volumes:
- name: dockersock - name: dockersock
temp: {} temp: {}
image_pull_secrets:
- DOCKER_AUTH
--- ---
kind: signature kind: signature
hmac: 8cbec230fea28e3ebdaefe0d8d13e9bef855e7cc7207df01f7f7d8b3e80c803d hmac: 7b4be36e3ae47ce5d1ccc6eebcaf4c0cecb9332f5ca653777b0fc23e0446e360
... ...

View File

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