fix: Install Ansible in docker-build image instead of runtime
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Successful in 44s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Successful in 18s
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Failing after 2s
Security Vulnerability Scan / Composer Security Audit (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Failing after 44s
Security Vulnerability Scan / Check for Dependency Changes (push) Successful in 40s
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Successful in 44s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Successful in 18s
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Failing after 2s
Security Vulnerability Scan / Composer Security Audit (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Failing after 44s
Security Vulnerability Scan / Check for Dependency Changes (push) Successful in 40s
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
This commit is contained in:
@@ -963,11 +963,6 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/production
|
chmod 600 ~/.ssh/production
|
||||||
ssh-keyscan -H ${{ env.DEPLOYMENT_HOST }} >> ~/.ssh/known_hosts
|
ssh-keyscan -H ${{ env.DEPLOYMENT_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Install Ansible
|
|
||||||
run: |
|
|
||||||
apk add --no-cache python3 py3-pip
|
|
||||||
pip3 install --user ansible-core docker
|
|
||||||
|
|
||||||
- name: Create Ansible Vault password file
|
- name: Create Ansible Vault password file
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" ]; then
|
if [ -n "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" ]; then
|
||||||
@@ -1117,11 +1112,6 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/production
|
chmod 600 ~/.ssh/production
|
||||||
ssh-keyscan -H ${{ env.DEPLOYMENT_HOST }} >> ~/.ssh/known_hosts
|
ssh-keyscan -H ${{ env.DEPLOYMENT_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Install Ansible
|
|
||||||
run: |
|
|
||||||
apk add --no-cache python3 py3-pip
|
|
||||||
pip3 install --user ansible-core docker
|
|
||||||
|
|
||||||
- name: Create Ansible Vault password file
|
- name: Create Ansible Vault password file
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" ]; then
|
if [ -n "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" ]; then
|
||||||
|
|||||||
@@ -112,11 +112,6 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/production
|
chmod 600 ~/.ssh/production
|
||||||
ssh-keyscan -H ${{ env.DEPLOYMENT_HOST }} >> ~/.ssh/known_hosts
|
ssh-keyscan -H ${{ env.DEPLOYMENT_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Install Ansible
|
|
||||||
run: |
|
|
||||||
apk add --no-cache python3 py3-pip
|
|
||||||
pip3 install --user ansible-core docker
|
|
||||||
|
|
||||||
- name: Create Ansible Vault password file
|
- name: Create Ansible Vault password file
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" ]; then
|
if [ -n "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" ]; then
|
||||||
@@ -236,11 +231,6 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/production
|
chmod 600 ~/.ssh/production
|
||||||
ssh-keyscan -H ${{ env.DEPLOYMENT_HOST }} >> ~/.ssh/known_hosts
|
ssh-keyscan -H ${{ env.DEPLOYMENT_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Install Ansible
|
|
||||||
run: |
|
|
||||||
apk add --no-cache python3 py3-pip
|
|
||||||
pip3 install --user ansible-core docker
|
|
||||||
|
|
||||||
- name: Create Ansible Vault password file
|
- name: Create Ansible Vault password file
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" ]; then
|
if [ -n "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" ]; then
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ RUN apk add --no-cache \
|
|||||||
bash \
|
bash \
|
||||||
curl \
|
curl \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
ca-certificates
|
ca-certificates \
|
||||||
|
python3 \
|
||||||
|
py3-pip
|
||||||
|
|
||||||
# Installiere Docker Buildx (global für alle User)
|
# Installiere Docker Buildx (global für alle User)
|
||||||
RUN mkdir -p /usr/local/lib/docker/cli-plugins && \
|
RUN mkdir -p /usr/local/lib/docker/cli-plugins && \
|
||||||
@@ -25,11 +27,17 @@ RUN mkdir -p /usr/local/lib/docker/cli-plugins && \
|
|||||||
mkdir -p /root/.docker/cli-plugins && \
|
mkdir -p /root/.docker/cli-plugins && \
|
||||||
cp /usr/local/lib/docker/cli-plugins/docker-buildx /root/.docker/cli-plugins/docker-buildx
|
cp /usr/local/lib/docker/cli-plugins/docker-buildx /root/.docker/cli-plugins/docker-buildx
|
||||||
|
|
||||||
|
# Installiere Ansible (global für alle User)
|
||||||
|
# --break-system-packages ist nötig in Alpine, da pip PEP 668 befolgt
|
||||||
|
RUN pip3 install --no-cache-dir --break-system-packages ansible-core docker
|
||||||
|
|
||||||
# Verifiziere Installation
|
# Verifiziere Installation
|
||||||
RUN docker --version && \
|
RUN docker --version && \
|
||||||
git --version && \
|
git --version && \
|
||||||
bash --version && \
|
bash --version && \
|
||||||
docker buildx version
|
docker buildx version && \
|
||||||
|
python3 --version && \
|
||||||
|
ansible --version
|
||||||
|
|
||||||
# Arbeitsverzeichnis
|
# Arbeitsverzeichnis
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|||||||
Reference in New Issue
Block a user