From 68aca9ccaa984d4f376e0714c6b0d38ccb92e0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20SALVI?= Date: Sat, 21 Dec 2024 19:15:06 +0100 Subject: [PATCH] Action: build custom image --- .gitea/workflows/gitea-ci.yaml | 23 +++++++++-------------- Dockerfile | 3 +-- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml index b83a6ee..168e87d 100644 --- a/.gitea/workflows/gitea-ci.yaml +++ b/.gitea/workflows/gitea-ci.yaml @@ -1,4 +1,4 @@ -name: Build And Test +name: Build and push runner-custom image run-name: ${{ gitea.actor }} is runs ci pipeline on: [ push ] @@ -7,16 +7,11 @@ jobs: runs-on: runner-custom if: gitea.ref == 'refs/heads/main' steps: - - uses: https://github.com/actions/checkout@v4 - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 - with: - config-inline: | - [registry."git.unixyourbrain.org"] - - name: Build and push Docker image - uses: https://github.com/docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: true - tags: git.unixyourbrain.org/runner-custom:${{gitea.sha}},git.unixyourbrain.org/runner-custom:latest + - uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + run: | + ls ${{ gitea.workspace }} + run: | + cd ${{ gitea.workspace }} + run: | + pwd diff --git a/Dockerfile b/Dockerfile index 72aed85..fdb06cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,4 @@ FROM archlinux:latest RUN pacman -Sy --noconfirm RUN pacman -S --noconfirm docker docker-buildx docker-compose && rm /var/cache/pacman/pkg/* RUN pacman -S --noconfirm git && rm /var/cache/pacman/pkg/* - -RUN mkdir -p /workspace +RUN pacman -S --noconfirm npm && rm /var/cache/pacman/pkg/*