From 46c5c4b8ddfa02adb0f6d9e8c3367654f4dae0fb Mon Sep 17 00:00:00 2001 From: sqozz Date: Fri, 17 May 2024 12:34:55 +0200 Subject: [PATCH] Remove hardcoded paths from build file --- .forgejo/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 6c0b152..4516d14 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -8,6 +8,6 @@ jobs: steps: - run: apk add buildah wget - run: buildah login --username ${{ secrets.username }} --password ${{ secrets.password }} git.geekify.de - - run: wget https://git.geekify.de/Containers/alpine-bash/raw/branch/main/Dockerfile + - run: wget ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/raw/branch/${GITHUB_REF_NAME}/Dockerfile - run: buildah build --isolation=chroot | tee container_id - - run: buildah push $(tail -n 1 container_id) git.geekify.de/containers/alpine-bash:latest \ No newline at end of file + - run: buildah push $(tail -n 1 container_id) git.geekify.de/${GITHUB_REPOSITORY}:latest