From 37523abc7294d989cfa57beae0a97dcce18a2b5d Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 6 Apr 2024 10:58:52 +1100 Subject: [PATCH] Added gitea CI/CD configuration --- .gitea/workflows/build_docker.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml index 2fb843f..743cbb8 100644 --- a/.gitea/workflows/build_docker.yaml +++ b/.gitea/workflows/build_docker.yaml @@ -41,7 +41,7 @@ jobs: echo "++ PWD" && pwd echo "++ ls" && ls -al echo "++ workspace" && ls ${{ gitea.workspace }} - echo "++ host is ${{ gitea.host }}" + echo "++ host is ${{ gitea.server_url }}" - name: Build run: | @@ -49,7 +49,7 @@ jobs: if [ -f init ]; then chmod 500 init; fi #([ -z "$REFRESH" -a -f build-cache/${CI_COMMIT_REF_SLUG} ]) && docker load < build-cache/${CI_COMMIT_REF_SLUG} || true #rm build-cache/* || true - docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ env.GITHUB_REPOSITORY }}:{{ $env.VERSION }} + docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} docker push ${CI_REGISTRY_IMAGE}:${VERSIONARCH} docker save ${CI_REGISTRY_IMAGE}:${VERSIONARCH} > build-cache/${CI_COMMIT_REF_SLUG}