From dd37748bf055ed8442afc7ae8a101f3f866f783f Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 6 Apr 2024 10:50:49 +1100 Subject: [PATCH] Added gitea CI/CD configuration --- .gitea/workflows/build_docker.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml index 0c28544..d3d3723 100644 --- a/.gitea/workflows/build_docker.yaml +++ b/.gitea/workflows/build_docker.yaml @@ -33,12 +33,15 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 + run: echo "Checked out ${{ gitea.repository }}" - name: Environment part 2 run: | echo "++ Environment" && env|sort echo "++ PWD" && pwd echo "++ ls" && ls -al + echo "++ workspace" && ls ${{ gitea.workspace }} + echo "++ host is ${{ gitea.host }}" - name: Build run: | @@ -46,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 ${CI_REGISTRY_IMAGE}:${VERSIONARCH} . + 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}