This commit is contained in:
Bertrand Lanson 2023-07-18 09:26:40 +02:00
parent d2d1318d91
commit a94fa888a7
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.2 # syntax=docker/dockerfile:1.2
FROM python:3.11 FROM python:3.11
RUN pip3 install --upgrade pip RUN pip3 install --upgrade ansible-core
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh

View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
set -e set -e
command_string="/usr/local/bin/ansible-galaxy role import" command_string="ansible-galaxy role import"
if [ -n "${GALAXY_API_TOKEN}" ]; then if [ -n "${GALAXY_API_TOKEN}" ]; then
command_string="$command_string --api-key ${GALAXY_API_TOKEN} ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY#*/}" command_string="$command_string --api-key ${GALAXY_API_TOKEN} ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY#*/}"