.gitea/workflows/build-and-push.yaml aktualisiert
build-and-push.yaml / release-and-build (push) Successful in 23s
build-and-push.yaml / release-and-build (push) Successful in 23s
This commit is contained in:
1 parent
453923d406
commit
3879067d9b
1 file changed
+21
-15
@@ -319,21 +319,27 @@ jobs:
|
|||||||
} > docker_run_block.txt
|
} > docker_run_block.txt
|
||||||
|
|
||||||
DOCKERHUB_LINK_CONTENT=""
|
DOCKERHUB_LINK_CONTENT=""
|
||||||
if [[ "${{ steps.prep.outputs.push_targets }}" == *"dockerhub"* ]]; then
|
if [[ "${{ steps.prep.outputs.push_targets }}" == *"dockerhub"* ]]; then
|
||||||
DH_USER="${{ secrets.DOCKERHUB_USERNAME }}"
|
DH_USER="${{ secrets.DOCKERHUB_USERNAME }}"
|
||||||
DOCKERHUB_LINK_CONTENT="[](https://hub.docker.com/r/${DH_USER}/${REPO_PURE})"
|
DOCKERHUB_LINK_CONTENT="[](https://hub.docker.com/r/${DH_USER}/${REPO_PURE})"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
process_template() {
|
# Stelle sicher, dass python3 vorhanden ist
|
||||||
local template=$1; local output=$2
|
if ! command -v python3 &> /dev/null; then
|
||||||
[ ! -f "$template" ] && return
|
echo "📦 python3 fehlt und wird installiert..."
|
||||||
cp "$template" "$output"
|
(apt-get update && apt-get install -y python3) || (apk add --no-cache python3) || true
|
||||||
|
fi
|
||||||
export REPO_PURE FULL_URL BUILD_TAG BASE_IMAGE ARM_STATUS CURRENT_TIME \
|
|
||||||
HISTORY_CONTENT DOCKERHUB_LINK_CONTENT ENV_BLOCK_CONTENT \
|
process_template() {
|
||||||
PORTS_BLOCK_CONTENT VOL_BLOCK_CONTENT DESCRIPTION
|
local template=$1; local output=$2
|
||||||
|
[ ! -f "$template" ] && return
|
||||||
python3 -c '
|
cp "$template" "$output"
|
||||||
|
|
||||||
|
export REPO_PURE FULL_URL BUILD_TAG BASE_IMAGE ARM_STATUS CURRENT_TIME \
|
||||||
|
HISTORY_CONTENT DOCKERHUB_LINK_CONTENT ENV_BLOCK_CONTENT \
|
||||||
|
PORTS_BLOCK_CONTENT VOL_BLOCK_CONTENT DESCRIPTION
|
||||||
|
|
||||||
|
python3 -c '
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
output = sys.argv[1]
|
output = sys.argv[1]
|
||||||
|
|||||||
Reference in new issue
Block a user