From 88b62b652e4edc0ea329ea156d188eb085190619 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 6c0b152..635e9aa 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -7,7 +7,7 @@ jobs: runs-on: docker 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: buildah login --username ${{ secrets.username }} --password ${{ secrets.password }} ${GITHUB_SERVER_URL} + - 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) ${GITHUB_SERVER_URL}/$(echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]'):latest