Add tree
(#15)
Some checks failed
Docker Build Pipeline / Cleanup-Old-Artifacts (push) Successful in 1s
Docker Build Pipeline / Check-Environment (push) Failing after 1s
Docker Build Pipeline / Clone-Repo (push) Successful in 1s
Docker Build Pipeline / Build-Images (push) Successful in 4s
Docker Build Pipeline / Push-Images (push) Successful in 2s
Docker Build Pipeline / Cleanup-Build-Images (push) Successful in 20s
Docker Build Pipeline / Cleanup-Docker-Login (push) Successful in 0s
Some checks failed
Docker Build Pipeline / Cleanup-Old-Artifacts (push) Successful in 1s
Docker Build Pipeline / Check-Environment (push) Failing after 1s
Docker Build Pipeline / Clone-Repo (push) Successful in 1s
Docker Build Pipeline / Build-Images (push) Successful in 4s
Docker Build Pipeline / Push-Images (push) Successful in 2s
Docker Build Pipeline / Cleanup-Build-Images (push) Successful in 20s
Docker Build Pipeline / Cleanup-Docker-Login (push) Successful in 0s
Reviewed-on: #15 Co-authored-by: Chris Hammer <chris@thezengarden.net> Co-committed-by: Chris Hammer <chris@thezengarden.net>
This commit is contained in:
parent
107744cab5
commit
41295efee2
379
.drone.yml.bak
Normal file
379
.drone.yml.bak
Normal file
@ -0,0 +1,379 @@
|
|||||||
|
---
|
||||||
|
##########################
|
||||||
|
# CENTOS STREAM 9: TESTING
|
||||||
|
##########################
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_centos_stream9-test
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- testing
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: check_environment
|
||||||
|
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_and_push
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_centos9
|
||||||
|
commands:
|
||||||
|
- echo "docker build --no-cache -f build/Containerfile.centos-stream9 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER ."
|
||||||
|
- docker build --no-cache -f build/Containerfile.centos-stream9 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER .
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
##########################
|
||||||
|
# CENTOS STREAM 9: RELEASE
|
||||||
|
##########################
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_centos_stream9-rel
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- release
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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_and_push
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_centos9
|
||||||
|
commands:
|
||||||
|
- docker build -f build/Containerfile.centos-stream9 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH .
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
####################
|
||||||
|
# FEDORA 39: TESTING
|
||||||
|
####################
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_fedora39-test
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- testing
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: check_environment
|
||||||
|
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_and_push
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_fedora39
|
||||||
|
commands:
|
||||||
|
- echo "docker build --no-cache -f build/Containerfile.fedora39 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER ."
|
||||||
|
- docker build --no-cache -f build/Containerfile.fedora39 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER .
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
####################
|
||||||
|
# FEDORA 39: RELEASE
|
||||||
|
####################
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_fedora39-rel
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- release
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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_and_push
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_fedora39
|
||||||
|
commands:
|
||||||
|
- docker build -f build/Containerfile.fedora39 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH .
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
####################
|
||||||
|
# DEBIAN 11: TESTING
|
||||||
|
####################
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_debian11-test
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- testing
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: check_environment
|
||||||
|
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_and_push
|
||||||
|
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 .
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
####################
|
||||||
|
# DEBIAN 11: RELEASE
|
||||||
|
####################
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_debian11-rel
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- release
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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_and_push
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_debian11
|
||||||
|
commands:
|
||||||
|
- docker build -f build/Containerfile.debian11 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH .
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
####################
|
||||||
|
# DEBIAN 12: TESTING
|
||||||
|
####################
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_debian12-test
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- testing
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: check_environment
|
||||||
|
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_and_push
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_debian12
|
||||||
|
commands:
|
||||||
|
- echo "docker build --no-cache -f build/Containerfile.debian12 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER ."
|
||||||
|
- docker build --no-cache -f build/Containerfile.debian12 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER .
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH-$CI_BUILD_NUMBER
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
####################
|
||||||
|
# DEBIAN 12: RELEASE
|
||||||
|
####################
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: ansible_dev_debian12-rel
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- release
|
||||||
|
event: [push]
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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_and_push
|
||||||
|
environment:
|
||||||
|
REGISTRY :
|
||||||
|
from_secret: build_registry
|
||||||
|
BUILD_PREFIX :
|
||||||
|
from_secret: build_prefix
|
||||||
|
BUILD_NAME :
|
||||||
|
from_secret: build_name_debian12
|
||||||
|
commands:
|
||||||
|
- docker build -f build/Containerfile.debian12 -t $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH .
|
||||||
|
- docker push $REGISTRY/$BUILD_PREFIX/$BUILD_NAME:$CI_COMMIT_BRANCH
|
||||||
|
- docker images | grep "$REGISTRY/$BUILD_PREFIX/$BUILD_NAME"
|
@ -26,11 +26,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Environment check
|
- name: Environment check
|
||||||
run: |
|
run: |
|
||||||
hostnamectl
|
hostnamectl && echo
|
||||||
env
|
env && echo
|
||||||
whoami
|
whoami && echo
|
||||||
pwd
|
pwd && echo
|
||||||
tree
|
tree && echo
|
||||||
|
git log -1 && echo
|
||||||
|
|
||||||
|
|
||||||
Clone-Repo:
|
Clone-Repo:
|
||||||
|
@ -26,11 +26,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Environment check
|
- name: Environment check
|
||||||
run: |
|
run: |
|
||||||
hostnamectl
|
echo "BUILD_USER: $(whoami)" && echo
|
||||||
env
|
echo "PWD: $(pwd)" && echo
|
||||||
whoami
|
hostnamectl && echo
|
||||||
pwd
|
lscpu && echo
|
||||||
tree
|
env && echo
|
||||||
|
docker info && echo
|
||||||
|
|
||||||
|
|
||||||
Clone-Repo:
|
Clone-Repo:
|
||||||
@ -46,6 +47,9 @@ jobs:
|
|||||||
cd ansible-dev
|
cd ansible-dev
|
||||||
git checkout ${{ env.GITHUB_REF_NAME }}
|
git checkout ${{ env.GITHUB_REF_NAME }}
|
||||||
|
|
||||||
|
- name: Verify current commit
|
||||||
|
run: cd ansible-dev && git log -1
|
||||||
|
|
||||||
|
|
||||||
Build-Images:
|
Build-Images:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
@ -12,7 +12,7 @@ COPY python/requirements.txt /tmp/requirements.txt
|
|||||||
|
|
||||||
# RUN dnf install -y python3-pip git ansible-core python3-ansible-lint
|
# RUN dnf install -y python3-pip git ansible-core python3-ansible-lint
|
||||||
RUN dnf update -y \
|
RUN dnf update -y \
|
||||||
&& dnf install -y python3-pip git systemd nodejs \
|
&& dnf install -y python3-pip git systemd nodejs tree \
|
||||||
&& pip install pip --upgrade \
|
&& pip install pip --upgrade \
|
||||||
&& pip install -r /tmp/requirements.txt
|
&& pip install -r /tmp/requirements.txt
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ COPY python/requirements.txt /tmp/requirements.txt
|
|||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt dist-upgrade -y \
|
&& apt dist-upgrade -y \
|
||||||
&& apt autoremove --purge -y \
|
&& apt autoremove --purge -y \
|
||||||
&& apt install -y python3-pip git systemd nodejs \
|
&& apt install -y python3-pip git systemd nodejs tree \
|
||||||
&& pip install pip --upgrade --break-system-packages \
|
&& pip install pip --upgrade --break-system-packages \
|
||||||
&& pip install -r /tmp/requirements.txt --break-system-packages
|
&& pip install -r /tmp/requirements.txt --break-system-packages
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ COPY conf/dnf.conf /etc/dnf/dnf.conf
|
|||||||
COPY python/requirements.txt /tmp/requirements.txt
|
COPY python/requirements.txt /tmp/requirements.txt
|
||||||
|
|
||||||
# RUN dnf install -y python3-pip git ansible-core python3-ansible-lint
|
# RUN dnf install -y python3-pip git ansible-core python3-ansible-lint
|
||||||
RUN dnf install -y python3-pip python3-devel gcc git systemd nodejs \
|
RUN dnf install -y python3-pip python3-devel gcc git systemd nodejs tree \
|
||||||
&& pip install pip --upgrade \
|
&& pip install pip --upgrade \
|
||||||
&& pip install -r /tmp/requirements.txt
|
&& pip install -r /tmp/requirements.txt
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user