Fix rosti.sh generator
Some checks failed
Test build / build (push) Failing after 26m25s

This commit is contained in:
Adam Štrauch 2025-01-19 22:55:11 +01:00
parent 0db0f874fa
commit ef43ec73ad
Signed by: cx
GPG key ID: 7262DAFE292BCE20
2 changed files with 11 additions and 4 deletions

View file

@ -14,6 +14,8 @@ jobs:
# echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO # echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO
docker login gitea.ceperka.net -u "${{ secrets.REPO_USERNAME }}" -p "${{ secrets.REPO_PASSWORD }}" docker login gitea.ceperka.net -u "${{ secrets.REPO_USERNAME }}" -p "${{ secrets.REPO_PASSWORD }}"
task pipeline REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline task pipeline REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
- name: Cleaning step
if: always()
run: docker stop dev_test

View file

@ -4,9 +4,14 @@ set TECHS_FILE /tmp/techs.txt
echo -n > $TECHS_FILE echo -n > $TECHS_FILE
for line in (cat Dockerfile | grep "RUN build_") for line in (cat Dockerfile | grep "build_" | grep -v "/usr/local")
set VERSION (echo $line | cut -d " " -f 3) set line (echo $line | sed "s/RUN //")
set TECH_SCRIPT (echo $line | cut -d " " -f 2) set line (echo $line | sed "s/ADD //")
set line (echo $line | sed "s/& \\\//")
set line (echo $line | sed "s/^[ ]*//")
set VERSION (echo $line | cut -d " " -f 2)
set TECH_SCRIPT (echo $line | cut -d " " -f 1)
switch $TECH_SCRIPT switch $TECH_SCRIPT
case "build_php.sh" case "build_php.sh"