test drone check syntax
This commit is contained in:
parent
1caaac3485
commit
284e86c424
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
Dockerfile
|
16
.drone.yml
16
.drone.yml
@ -1,11 +1,13 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: check ansible syntax
|
- name: check syntax ansible
|
||||||
image: plugins/ansible:3
|
image: v4l3n71n/covas:latest
|
||||||
settings:
|
pull: if-not-exists
|
||||||
playbook: playbook.yml
|
commands:
|
||||||
galaxy: requirements.yml
|
- ansible-playbook -i inventory --syntax-check playbook.yml
|
||||||
inventory: inventory
|
|
||||||
syntax_check: true
|
image_pull_secrets:
|
||||||
|
- dockerconfig
|
||||||
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM debian:bookworm-slim
|
||||||
|
RUN apt-get update --yes && apt-get upgrade --yes && apt-get install --yes python3 python3-pip && rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN groupadd -r ansible && useradd -m -r -g ansible ansible
|
||||||
|
USER ansible
|
||||||
|
RUN pip install ansible
|
||||||
|
WORKDIR /home/ansible
|
||||||
|
ENV PATH="${PATH}:/home/ansible/.local/bin"
|
||||||
|
COPY . /home/ansible
|
||||||
|
RUN ansible-galaxy install -vvvv -r requirements.yml
|
@ -1,6 +1,6 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
35333863396561393462653263323133343233346534616138616530643066323161656534653738
|
32373966623936633630666638373762306130326162383539633032616330323831643063613465
|
||||||
3335306466663636623236383435663337393466633437660a303961663331653463343933353966
|
6633346330663030353837306235353133356161633236660a666230326236316537363130353733
|
||||||
35636161393663386137306561613965653438626432323865323233636662653333616532636665
|
61373037313536373364613731386137643931303365373737613433653835386533653638393037
|
||||||
3562333936366238640a646262373233363665366437653032303238313266356138343239303936
|
3134666533313136330a626331313231613163323162663436653261623762656632373434383566
|
||||||
36663531303061663763653637333365303664666563353631303435633462343537
|
34353930626630643762303530363665636161316163313031366238373362376461
|
||||||
|
@ -4,6 +4,7 @@ project_src: "/home/valentin/registry"
|
|||||||
project_directory:
|
project_directory:
|
||||||
- "{{ project_src }}"
|
- "{{ project_src }}"
|
||||||
|
|
||||||
|
|
||||||
docker_compose_file: "docker-compose-registry.yml"
|
docker_compose_file: "docker-compose-registry.yml"
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ valentin-nas
|
|||||||
[registry]
|
[registry]
|
||||||
valentin-nas
|
valentin-nas
|
||||||
|
|
||||||
|
|
||||||
[drone]
|
[drone]
|
||||||
drone-host
|
drone-host
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
/home/valentin/.ansible/collections/ansible_collections:
|
collections:
|
||||||
community.docker:
|
|
||||||
version: 3.1.0
|
|
||||||
/usr/lib/python3.10/site-packages/ansible_collections:
|
|
||||||
amazon.aws:
|
amazon.aws:
|
||||||
version: 3.4.0
|
version: 3.4.0
|
||||||
ansible.netcommon:
|
ansible.netcommon:
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
- name: Create folder for image
|
- name: Create folder for image
|
||||||
ansible.builtin.import_tasks: create-build.yml
|
import_tasks: create-build.yml
|
||||||
tags: ["create-build"]
|
tags: ["create-build"]
|
||||||
|
|
||||||
- name: Create cluster k8s scaleway via terraform
|
- name: Create cluster k8s scaleway via terraform
|
||||||
ansible.builtin.import_tasks: create-cluster.yml
|
import_tasks: create-cluster.yml
|
||||||
tags: ["create-cluster"]
|
tags: ["create-cluster"]
|
||||||
|
|
||||||
- name: Get id Cluster
|
- name: Get id Cluster
|
||||||
ansible.builtin.import_tasks: kubeconfig.yml
|
import_tasks: kubeconfig.yml
|
||||||
tags: ["create-cluster", "kubeconfig"]
|
tags: ["create-cluster", "kubeconfig"]
|
||||||
|
|
||||||
- name: Destroy cluster k8s scaleway via terraform
|
- name: Destroy cluster k8s scaleway via terraform
|
||||||
ansible.builtin.import_tasks: destroy-cluster.yml
|
import_tasks: destroy-cluster.yml
|
||||||
tags: ["destroy-cluster"]
|
tags: ["destroy-cluster"]
|
@ -7,5 +7,6 @@ services:
|
|||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
environment:
|
environment:
|
||||||
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
|
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
|
@ -3,22 +3,22 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Debug role
|
- name: Debug role
|
||||||
ansible.builtin.import_tasks: debug.yml
|
import_tasks: debug.yml
|
||||||
tags: ["debug"]
|
tags: ["debug"]
|
||||||
|
|
||||||
- name: Deploy services
|
- name: Deploy services
|
||||||
ansible.builtin.import_tasks: deploy.yml
|
import_tasks: deploy.yml
|
||||||
tags: ["deploy", "create"]
|
tags: ["deploy", "create"]
|
||||||
|
|
||||||
- name: Start services
|
- name: Start services
|
||||||
ansible.builtin.import_tasks: start.yml
|
import_tasks: start.yml
|
||||||
tags: ["deploy", "start"]
|
tags: ["deploy", "start"]
|
||||||
|
|
||||||
|
|
||||||
- name: stop services
|
- name: stop services
|
||||||
ansible.builtin.import_tasks: stop.yml
|
import_tasks: stop.yml
|
||||||
tags: ["destroy", "stop"]
|
tags: ["destroy", "stop"]
|
||||||
|
|
||||||
- name: Remove services
|
- name: Remove services
|
||||||
ansible.builtin.import_tasks: remove.yml
|
import_tasks: remove.yml
|
||||||
tags: ["destroy"]
|
tags: ["destroy"]
|
Loading…
x
Reference in New Issue
Block a user