From e26770f99776ba1fdce6162f35baf491fd778df7 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 5 Apr 2024 17:30:32 +1100 Subject: [PATCH] Added gitea CI/CD configuration --- .gitea/workflows/build_docker.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml index d83187d..97d4f89 100644 --- a/.gitea/workflows/build_docker.yaml +++ b/.gitea/workflows/build_docker.yaml @@ -33,15 +33,15 @@ jobs: - name: Environment part 2 run: | - echo "++ Environment" && env + echo "++ Environment" && env|sort echo "++ PWD" && pwd echo "++ ls" && ls -al - name: Build run: | 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 + #([ -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}} --cache-from ${CI_REGISTRY_IMAGE}:${VERSIONARCH} -t ${CI_REGISTRY_IMAGE}:${VERSIONARCH} . docker push ${CI_REGISTRY_IMAGE}:${VERSIONARCH} docker save ${CI_REGISTRY_IMAGE}:${VERSIONARCH} > build-cache/${CI_COMMIT_REF_SLUG}