Compare commits

..
10 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
Pierre Geeraert 7241b2a720 fixing mistake
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4m29s
2026-01-19 17:15:07 +00:00
Pierre Geeraert a55cb2bf94 installing docker.io 2026-01-19 17:09:34 +00:00
Pierre Geeraert 7d915fb6e7 adding docker install 2026-01-19 16:11:33 +00:00
2 changed files with 16 additions and 44 deletions
+14 -30
View File
@@ -1,5 +1,5 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
run-name: Building and deploying to Prod 🚀
on:
push:
issue_comment:
@@ -10,9 +10,10 @@ jobs:
env:
RUNNER_TOOL_CACHE: /toolcache
container:
image: gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:latest
volumes:
- act-toolcache:/opt/hostedtoolcache # this is where Runner store their cache default
runs-on: ubuntu-latest
runs-on: host-runner
steps:
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
@@ -34,22 +35,6 @@ jobs:
echo "------------------------------------------------"
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
uses: docker/login-action@v3
@@ -58,20 +43,19 @@ jobs:
username: ${{ secrets.USERNAME_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: |
rm -rf /opt/hostedtoolcache/.buildx-cache
mv /opt/hostedtoolcache/.buildx-cache-new /opt/hostedtoolcache/.buildx-cache
docker build \
-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
run: |
+2 -14
View File
@@ -1,16 +1,4 @@
FROM debian:stable-slim
RUN apt-get update \
&& apt-get install nodejs ca-certificates curl -y
RUN install -m 0755 -d /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
RUN chmod a+r /etc/apt/keyrings/docker.asc
RUN tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
RUN apt-get update -y
RUN apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
&& apt-get install nodejs docker.io curl jq npm -y
ENV PATH="/usr/bin:${PATH}"