Compare commits

..
7 Commits
Author SHA1 Message Date
pi-ux-ce 96e7bbf1dd add npm
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7m26s
2026-09-24 08:54:52 +00:00
pierre.geeraert 884f447200 try some recursivity
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 18s
2026-09-22 13:48:09 +01:00
pierre.geeraert 8de1457256 use optimized version
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 27s
2026-09-22 13:43:18 +01:00
pierre.geeraert fd53b7e696 use optimized version
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m28s
2026-09-22 13:42:48 +01:00
pi-ux-ce e8b97d4ca4 add JQ for image downloader
Gitea Actions Demo / Explore-Gitea-Actions (push) Canceled after 3m35s
2026-09-22 12:39:49 +00:00
Pierre Geeraert e262429bb1 add curl
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4m56s
2026-01-19 17:52:59 +00:00
Pierre Geeraert 64941b91d3 adding ENV for docker
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 58s
2026-01-19 17:36:19 +00:00
2 changed files with 16 additions and 31 deletions
+14 -30
View File
@@ -1,5 +1,5 @@
name: Gitea Actions Demo name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: Building and deploying to Prod 🚀
on: on:
push: push:
issue_comment: issue_comment:
@@ -10,9 +10,10 @@ jobs:
env: env:
RUNNER_TOOL_CACHE: /toolcache RUNNER_TOOL_CACHE: /toolcache
container: container:
image: gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:latest
volumes: volumes:
- act-toolcache:/opt/hostedtoolcache # this is where Runner store their cache default - act-toolcache:/opt/hostedtoolcache # this is where Runner store their cache default
runs-on: ubuntu-latest runs-on: host-runner
steps: steps:
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code - name: Check out repository code
@@ -34,22 +35,6 @@ jobs:
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Next version: $next_version" echo "Next version: $next_version"
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: inject cache into docker
uses: reproducible-containers/buildkit-cache-dance@v3.1.0
with:
cache-source: /opt/hostedtoolcache/pip
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to gitea - name: Login to gitea
uses: docker/login-action@v3 uses: docker/login-action@v3
@@ -58,20 +43,19 @@ jobs:
username: ${{ secrets.USERNAME_GITEA }} username: ${{ secrets.USERNAME_GITEA }}
password: ${{ secrets.PASSWORD_GITEA }} password: ${{ secrets.PASSWORD_GITEA }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: |
gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:latest
gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:${{ env.next_version }}
cache-from: type=local,src=/opt/hostedtoolcache/.buildx-cache
cache-to: type=local,dest=/opt/hostedtoolcache/.buildx-cache-new,mode=max
- name: Move cache - name: Build image
run: | run: |
rm -rf /opt/hostedtoolcache/.buildx-cache docker build \
mv /opt/hostedtoolcache/.buildx-cache-new /opt/hostedtoolcache/.buildx-cache -t gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:latest \
-t gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:${{ env.next_version }} \
.
- name: Push image
run: |
docker push gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:latest
docker push gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:${{ env.next_version }}
- name: update version in the variable - name: update version in the variable
run: | run: |
+2 -1
View File
@@ -1,3 +1,4 @@
FROM debian:stable-slim FROM debian:stable-slim
RUN apt-get update \ RUN apt-get update \
&& apt-get install nodejs docker.io -y && apt-get install nodejs docker.io curl jq npm -y
ENV PATH="/usr/bin:${PATH}"