- add debian 11 build
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
- add comment labels for each distribution - remove depends_on to run in parallel
This commit is contained in:
parent
17e5f4c093
commit
5476a9623f
85
.drone.yml
85
.drone.yml
@ -1,3 +1,6 @@
|
|||||||
|
#################
|
||||||
|
# CENTOS STREAM 9
|
||||||
|
#################
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
@ -70,6 +73,9 @@ steps:
|
|||||||
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
###########
|
||||||
|
# FEDORA 39
|
||||||
|
###########
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
@ -84,10 +90,6 @@ trigger:
|
|||||||
status: [success]
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- ansible_dev_centos_stream9
|
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: check_env
|
- name: check_env
|
||||||
commands:
|
commands:
|
||||||
@ -144,3 +146,78 @@ steps:
|
|||||||
from_secret: build_name_fedora39
|
from_secret: build_name_fedora39
|
||||||
commands:
|
commands:
|
||||||
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
###########
|
||||||
|
# DEBIAN 11
|
||||||
|
###########
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_debian11
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: check_env
|
||||||
|
commands:
|
||||||
|
- hostnamectl
|
||||||
|
- env
|
||||||
|
- whoami
|
||||||
|
- pwd
|
||||||
|
- tree
|
||||||
|
|
||||||
|
- name: docker_info
|
||||||
|
commands:
|
||||||
|
- docker info
|
||||||
|
|
||||||
|
- name: docker_login
|
||||||
|
environment:
|
||||||
|
REGISTRY : gitea.thezengarden.net
|
||||||
|
GITEA_USER :
|
||||||
|
from_secret: gitea_user
|
||||||
|
GITEA_PASSWORD :
|
||||||
|
from_secret: gitea_password
|
||||||
|
commands:
|
||||||
|
- echo "$GITEA_PASSWORD" | docker login --username $GITEA_USER --password-stdin $REGISTRY
|
||||||
|
|
||||||
|
- name: docker_build
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_debian11
|
||||||
|
commands:
|
||||||
|
- echo "docker build --no-cache -f build/Containerfile.debian11 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER ."
|
||||||
|
- docker build --no-cache -f build/Containerfile.debian11 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER .
|
||||||
|
|
||||||
|
- name: docker_push
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_debian11
|
||||||
|
commands:
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER
|
||||||
|
|
||||||
|
- name: docker_image_list
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_debian11
|
||||||
|
commands:
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user