From 6ddad82571af6bf93ed940e88defe5e8160544a9 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 6 Apr 2024 19:36:42 +1100 Subject: [PATCH] Added gitea CI/CD configuration --- .gitea/workflows/build_docker.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml index 57498d4..7024a25 100644 --- a/.gitea/workflows/build_docker.yaml +++ b/.gitea/workflows/build_docker.yaml @@ -52,14 +52,14 @@ jobs: 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 }}" + echo "++ runtime token ${{ env.ACTIONS_RUNTIME_TOKEN }}" - - name: Build - run: | - set -x - if [ -f init ]; then chmod 500 init; fi - 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: Build + # run: | + # set -x + # if [ -f init ]; then chmod 500 init; fi + # 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 @@ -71,6 +71,8 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v5 + env: + GITHUB_AUTH_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }} with: context: . file: ./Dockerfile