From 746e40b45bc6c2221103612c5853ddd04fba3214 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 7 Apr 2024 09:00:35 +1000 Subject: [PATCH] Added gitea CI/CD configuration --- .gitea/workflows/build_docker.yaml | 42 +++++++++++++++--------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml index 2c5b579..6681194 100644 --- a/.gitea/workflows/build_docker.yaml +++ b/.gitea/workflows/build_docker.yaml @@ -41,18 +41,18 @@ jobs: registry=${registry##http*://} echo "registry=${registry}" >> "$GITHUB_OUTPUT" - - 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.repository }}" - 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 ${{ env.ACTIONS_RUNTIME_TOKEN }}" + #- 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.repository }}" + # 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 ${{ env.ACTIONS_RUNTIME_TOKEN }}" #- name: Build # run: | @@ -76,12 +76,12 @@ jobs: username: deon password: ${{ secrets.PKG_WRITE_TOKEN }} - - name: Build and push Docker image - uses: docker/build-push-action@v5 - env: - GIT_AUTH_TOKEN: ${{ secrets.PKG_WRITE_TOKEN }} - with: - context: . - file: ./Dockerfile - push: true - tags: "${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}" + #- name: Build and push Docker image + # uses: docker/build-push-action@v5 + # env: + # GIT_AUTH_TOKEN: ${{ secrets.PKG_WRITE_TOKEN }} + # with: + # context: . + # file: ./Dockerfile + # push: true + # tags: "${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}"