Compare commits
54 Commits
3abb661859
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b86f643f82 | |||
| 598a53ad10 | |||
| 403f632493 | |||
| 9cbb65d19d | |||
| 46492f751e | |||
| bee14d3b79 | |||
| 23949c175f | |||
| c715a61237 | |||
| 06bddf89e2 | |||
| 9d73a18f38 | |||
| 1e88e10d87 | |||
| 62e1cabf1a | |||
|
|
660fa62df7 | ||
|
|
0ae6edebc1 | ||
|
|
59c0e8b5cb | ||
|
|
d24d0bae09 | ||
|
|
fee1736436 | ||
|
|
3a1993db91 | ||
|
|
9d8a658a57 | ||
|
|
8adf4af10b | ||
|
|
3988abbb98 | ||
|
|
36a2d0d72d | ||
|
|
8f1e82e2bf | ||
|
|
68b7ec2b08 | ||
|
|
656bdcedae | ||
|
|
e5a4fc8cf9 | ||
|
|
9941d188a8 | ||
|
|
08bb85eb62 | ||
|
|
27c462ca68 | ||
|
|
7c064e5d26 | ||
|
|
90e3a91982 | ||
|
|
23bd13f34a | ||
|
|
cef367ddd4 | ||
|
|
7d2df517f1 | ||
|
|
f46256aebb | ||
|
|
21511536b9 | ||
|
|
f74df47fa7 | ||
| 4963812f67 | |||
|
|
caf2583c56 | ||
|
|
89ee036c84 | ||
|
|
15fe8d4862 | ||
|
|
ccd7795a02 | ||
|
|
d30037eeb1 | ||
|
|
934107b63a | ||
|
|
268df6a503 | ||
|
|
78f4027b6a | ||
|
|
a793dc9fce | ||
|
|
9144f1d47c | ||
|
|
ff386c2fd5 | ||
|
|
4f941b9bac | ||
|
|
cf5a997306 | ||
|
|
dfe10a61b2 | ||
|
|
8214838cff | ||
|
|
d8816a34ad |
@@ -1,4 +1,4 @@
|
|||||||
name: Gitea Actions Demo
|
name: Gitea Actions Centos
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -13,8 +13,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
- run: apk add --no-cache nodejs python3 docker
|
- run: apk add --no-cache nodejs python3 docker
|
||||||
- run: python -m ensurepip --upgrade
|
- run: python3 -m venv .venv && . .venv/bin/activate
|
||||||
- run: python -m pip install ansible-builder
|
- run: . .venv/bin/activate && python -m ensurepip --upgrade
|
||||||
|
- run: . .venv/bin/activate && python -m pip install ansible-builder
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
@@ -31,6 +32,14 @@ jobs:
|
|||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
|
- run: echo "build context"
|
||||||
|
- run: python3 -m venv .venv && . .venv/bin/activate
|
||||||
|
- run: . .venv/bin/activate && python -m ensurepip --upgrade
|
||||||
|
- run: . .venv/bin/activate && python -m pip install ansible-builder
|
||||||
|
- run: . .venv/bin/activate && ansible-builder create -f execution-environment.yml -c context
|
||||||
|
- name: List files in the repository
|
||||||
|
run: |
|
||||||
|
ls ${{ gitea.workspace }}/context
|
||||||
- name: Login to the Container registry
|
- name: Login to the Container registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -41,6 +50,6 @@ jobs:
|
|||||||
uses: https://github.com/docker/build-push-action@v5
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: context
|
context: context
|
||||||
file: context/Containerfile
|
file: context/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.hyperon.be/bram/ultimate-ee-centos9
|
tags: git.hyperon.be/bram/ultimate-ee-centos9
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Gitea Actions Minimal
|
name: Gitea Actions Minimal EE
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -11,9 +11,10 @@ jobs:
|
|||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
- run: apk add --no-cache nodejs python3 docker
|
- run: apk add --no-cache nodejs python3 docker
|
||||||
- run: python -m ensurepip --upgrade
|
- run: python3 -m venv .venv && . .venv/bin/activate
|
||||||
- run: python -m pip install ansible-builder
|
- run: . .venv/bin/activate && python -m ensurepip --upgrade
|
||||||
|
- run: . .venv/bin/activate && python -m pip install ansible-builder
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
@@ -30,8 +31,11 @@ jobs:
|
|||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
- name: build context
|
- run: echo "build context"
|
||||||
run: ansible-builder create -f minimal-environment.yml -c context-minimal
|
- run: python3 -m venv .venv && . .venv/bin/activate
|
||||||
|
- run: . .venv/bin/activate && python -m ensurepip --upgrade
|
||||||
|
- run: . .venv/bin/activate && python -m pip install ansible-builder
|
||||||
|
- run: . .venv/bin/activate && ansible-builder create -f minimal-environment.yml -c context-minimal
|
||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}/context-minimal
|
ls ${{ gitea.workspace }}/context-minimal
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Gitea Actions Demo
|
name: Gitea Actions Rocky
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -12,8 +12,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
- run: apk add --no-cache nodejs python3 docker
|
- run: apk add --no-cache nodejs python3 docker
|
||||||
- run: python -m ensurepip --upgrade
|
- run: python3 -m venv .venv && . .venv/bin/activate
|
||||||
- run: python -m pip install ansible-builder
|
- run: . .venv/bin/activate && python -m ensurepip --upgrade
|
||||||
|
- run: . .venv/bin/activate && python -m pip install ansible-builder
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
@@ -30,8 +31,14 @@ jobs:
|
|||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
- name: build context
|
- run: echo "build context"
|
||||||
run: ansible-builder create -f rocky-environment.yml -c context-rocky
|
- run: python3 -m venv .venv && . .venv/bin/activate
|
||||||
|
- run: . .venv/bin/activate && python -m ensurepip --upgrade
|
||||||
|
- run: . .venv/bin/activate && python -m pip install ansible-builder
|
||||||
|
- run: . .venv/bin/activate && ansible-builder create -f rocky-environment.yml -c context-rocky
|
||||||
|
- name: List files in the repository
|
||||||
|
run: |
|
||||||
|
ls ${{ gitea.workspace }}/context-rocky
|
||||||
- name: Login to the Container registry
|
- name: Login to the Container registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -42,6 +49,6 @@ jobs:
|
|||||||
uses: https://github.com/docker/build-push-action@v5
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: context-rocky
|
context: context-rocky
|
||||||
file: context-rocky/Containerfile
|
file: context-rocky/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.hyperon.be/bram/ultimate-ee-rocky
|
tags: git.hyperon.be/bram/ultimate-ee-rocky
|
||||||
|
|||||||
27
.gitea/workflows/gitea-actions-sonarqube.yml
Normal file
27
.gitea/workflows/gitea-actions-sonarqube.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
|
- uses: sonarsource/sonarqube-scan-action@master
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
||||||
|
# following lines. This would typically be used to fail a deployment.
|
||||||
|
# - uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
|
# timeout-minutes: 5
|
||||||
|
# env:
|
||||||
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
@@ -22,26 +22,22 @@ additional_build_files:
|
|||||||
dest: configs
|
dest: configs
|
||||||
additional_build_steps:
|
additional_build_steps:
|
||||||
prepend_base:
|
prepend_base:
|
||||||
- RUN /usr/bin/python3 -m ensurepip
|
- RUN cp /usr/bin/microdnf /usr/bin/dnf && microdnf install python3 -y && /usr/bin/python3 -m ensurepip && /usr/bin/python3 -m pip install --upgrade pip cmake azure-identity azure-cli-core paramiko && $PYCMD -m pip install -U pip
|
||||||
- RUN /usr/bin/python3 -m pip install --upgrade pip
|
|
||||||
# prepend_galaxy: |
|
# prepend_galaxy: |
|
||||||
# RUN pip3 install --upgrade pip setuptools ansible ansible-runner
|
# RUN pip3 install --upgrade pip setuptools ansible ansible-runner
|
||||||
prepend_galaxy:
|
prepend_galaxy:
|
||||||
- RUN /usr/bin/python3 -m pip install --upgrade pip cmake
|
# - RUN /usr/bin/python3 -m pip install --upgrade pip cmake
|
||||||
- COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg
|
- COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg
|
||||||
prepend_final: |
|
#prepend_final: |
|
||||||
RUN whoami
|
#-
|
||||||
RUN cat /etc/os-release
|
|
||||||
# RUN pip3 install --upgrade pip setuptools ansible ansible-runner
|
# RUN pip3 install --upgrade pip setuptools ansible ansible-runner
|
||||||
# RUN yum install wget unzip gcc python3-devel -y
|
# RUN yum install wget unzip gcc python3-devel -y
|
||||||
append_base:
|
#append_base:
|
||||||
- RUN $PYCMD -m pip install -U pip
|
# - RUN $PYCMD -m pip install -U pip
|
||||||
append_final:
|
append_final:
|
||||||
# - RUN pip3 install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
|
# - RUN pip3 install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
|
||||||
- RUN pip3 install --upgrade azure-identity azure-cli-core paramiko
|
|
||||||
- COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor
|
- COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor
|
||||||
- RUN mkdir -p /var/run/receptor
|
- RUN mkdir -p /var/run/receptor && git lfs install --system
|
||||||
- RUN git lfs install --system
|
|
||||||
#- RUN mkdir -p /etc/ansible
|
#- RUN mkdir -p /etc/ansible
|
||||||
#- COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg
|
#- COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ ipaddr==2.2.0
|
|||||||
|
|
||||||
git+https://github.com/ansible/ansible-sign
|
git+https://github.com/ansible/ansible-sign
|
||||||
ncclient
|
ncclient
|
||||||
paramiko
|
paramiko>=3.4.1
|
||||||
pykerberos
|
pykerberos
|
||||||
pyOpenSSL
|
pyOpenSSL
|
||||||
pypsrp[kerberos,credssp]
|
pypsrp[kerberos,credssp]
|
||||||
|
|||||||
2
sonar-project.properties
Normal file
2
sonar-project.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
sonar.projectKey=test
|
||||||
|
sonar.sources=.
|
||||||
Reference in New Issue
Block a user