Compare commits
2 commits
ef43ec73ad
...
f85560426b
Author | SHA1 | Date | |
---|---|---|---|
f85560426b | |||
c6d7126d2a |
5 changed files with 27 additions and 17 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -25,9 +25,11 @@ jobs:
|
|||
- name: Set version from input
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
run: echo "TAG_NAME=${{ github.event.inputs.version }}" >> $GITHUB_ENV
|
||||
- name: Registry login
|
||||
run: docker login gitea.ceperka.net -u "${{ secrets.HARBOR_REPO_USERNAME }}" -p "${{ secrets.HARBOR_REPO_PASSWORD }}"
|
||||
- name: Final build
|
||||
run: |
|
||||
docker login gitea.ceperka.net -u "${{ secrets.HARBOR_REPO_USERNAME }}" -p "${{ secrets.HARBOR_REPO_PASSWORD }}"
|
||||
task squashed REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }}
|
||||
task push REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }}
|
||||
run: task squashed REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }}
|
||||
- name: Push:
|
||||
run: task push REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }}
|
||||
|
||||
|
||||
|
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
@ -9,11 +9,15 @@ jobs:
|
|||
runs-on: [dev, amd64]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Test build
|
||||
- name: docker login
|
||||
run: |
|
||||
# echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO
|
||||
docker login gitea.ceperka.net -u "${{ secrets.REPO_USERNAME }}" -p "${{ secrets.REPO_PASSWORD }}"
|
||||
task pipeline REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
|
||||
- name: Build
|
||||
run: task build REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
|
||||
- name: Test
|
||||
run: task test REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
|
||||
- name: Push
|
||||
run: task push REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
|
||||
- name: Cleaning step
|
||||
if: always()
|
||||
run: docker stop dev_test
|
||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -61,9 +61,9 @@ RUN build_node.sh 18.20.5 & \
|
|||
# https://www.python.org/downloads/
|
||||
WORKDIR /usr/src
|
||||
ADD build_python.sh /usr/local/bin/build_python.sh
|
||||
RUN build_python.sh 3.11.11 & \
|
||||
build_python.sh 3.12.8 & \
|
||||
build_python.sh 3.13.1
|
||||
RUN build_python.sh 3.11.11
|
||||
RUN build_python.sh 3.12.8
|
||||
RUN build_python.sh 3.13.1
|
||||
|
||||
## PHP 8
|
||||
# https://www.php.net/downloads.php
|
||||
|
@ -75,8 +75,8 @@ RUN build_php8.sh 8.4.3
|
|||
# https://www.ruby-lang.org/en/downloads/releases/
|
||||
WORKDIR /usr/src
|
||||
ADD build_ruby.sh /usr/local/bin/build_ruby.sh
|
||||
RUN build_ruby.sh 3.3.7 & \
|
||||
build_ruby.sh 3.4.1
|
||||
RUN build_ruby.sh 3.3.7
|
||||
RUN build_ruby.sh 3.4.1
|
||||
|
||||
## Deno
|
||||
# From: https://github.com/denoland/deno/releases
|
||||
|
|
|
@ -19,12 +19,16 @@ with open("Dockerfile") as f:
|
|||
if line.startswith("FROM debian:"):
|
||||
image = line.split(" ")[1].strip()
|
||||
continue
|
||||
if line.startswith("RUN build_"):
|
||||
if "build_" in line and "ADD" not in line:
|
||||
line = line.replace("RUN ", "").strip()
|
||||
line = line.replace("& \\", "")
|
||||
line = line.lstrip(" ")
|
||||
|
||||
parts = line.split(" ")
|
||||
name = parts[1].replace("build_", "").replace(".sh", "")
|
||||
name = parts[0].replace("build_", "").replace(".sh", "")
|
||||
if name.startswith("php"):
|
||||
name = "php"
|
||||
version = line.split(" ")[2].strip()
|
||||
version = parts[1].strip()
|
||||
if name not in output["techs"]:
|
||||
output["techs"][name] = {
|
||||
"versions": [],
|
||||
|
|
|
@ -24,10 +24,10 @@ fi
|
|||
CONTAINER_NAME=dev_test
|
||||
$DOCKER stop $CONTAINER_NAME &>/dev/null
|
||||
|
||||
COUNT=`cat Dockerfile | grep -e "^RUN build_" | sed "s/RUN build_//" | sed "s/\.sh//" | sed "s/php8/php/" | wc -l`
|
||||
COUNT=`cat Dockerfile | grep -e "build_" | grep -v "/usr/local" | sed "s/RUN //" | sed "s/ADD //" | sed 's/& \\\//' | sed "s/^[ ]*//" | sed "s/build_//" | sed "s/\.sh//" | sed "s/php8/php/" | wc -l`
|
||||
I=1
|
||||
|
||||
cat Dockerfile | grep -e "^RUN build_" | sed "s/RUN build_//" | sed "s/\.sh//" | sed "s/php8/php/" | \
|
||||
cat Dockerfile | grep -e "build_" | grep -v "/usr/local" | sed "s/RUN //" | sed "s/ADD //" | sed 's/& \\//' | sed "s/^[ ]*//" | sed "s/build_//" | sed "s/\.sh//" | sed "s/php8/php/" | \
|
||||
while read line
|
||||
do
|
||||
tech=`echo $line | cut -d " " -f 1`
|
||||
|
|
Loading…
Reference in a new issue