From 0b61ce8a598752a2e2200e0910ff3b9724fb6283 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 6 Apr 2024 12:46:29 +1100 Subject: [PATCH] Added gitea CI/CD configuration --- .gitea/workflows/build_docker.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml index 668d9f3..57498d4 100644 --- a/.gitea/workflows/build_docker.yaml +++ b/.gitea/workflows/build_docker.yaml @@ -51,13 +51,15 @@ jobs: echo "++ registry is ${{ steps.registry.outputs.registry }}" echo "++ container ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}" echo "++ gitea server/domain ${{ gitea.server }}/${{ gitea.domain }}:latest" + echo "++ github token ${{ gitea.TOKEN }}" + echo "++ runtime token ${{ actions.runtime.token }} or ${{ env.ACTIONS_RUNTIME_TOKEN }} or ${{ actions.runtime_token }}" - name: Build run: | set -x if [ -f init ]; then chmod 500 init; fi - echo docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} - echo docker push ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} + docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} + docker push ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} # name: Set up Docker Buildx # uses: https://github.com/docker/setup-buildx-action@v3