From 39469d6fe47e7ec9e69c89db218fa1373d2d8528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Tue, 25 Feb 2025 12:05:24 +0100 Subject: [PATCH] checkout repo by hand --- .forgejo/workflows/example.yaml | 6 ++++++ Dockerfile | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/example.yaml b/.forgejo/workflows/example.yaml index 6eae187..5be6ca5 100644 --- a/.forgejo/workflows/example.yaml +++ b/.forgejo/workflows/example.yaml @@ -8,4 +8,10 @@ jobs: container: image: git.hswro.org/fleg/actions-experiments:latest steps: + - run: git version + - run: git init + - run: git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" + - run: git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin "+${GITHUB_SHA}:${GITHUB_REF}" + - run: git checkout --force "${GITHUB_REF}" + - run: cat README.md - run: cat /etc/os-release diff --git a/Dockerfile b/Dockerfile index 4a74ebf..874b2d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM alpine:3.20 +FROM alpine:3.21 -RUN apk add --update gcc g++ make openssl-dev libc-dev ruby ruby-dev ruby-bundler ruby-json +RUN apk add --update git