diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml index d0dd4a5..03da73f 100644 --- a/.gitea/workflows/build-push.yml +++ b/.gitea/workflows/build-push.yml @@ -3,49 +3,27 @@ name: Build and Push Docker Image on: push: branches: - - main # Change this if your default branch is different + - main jobs: build-and-push: runs-on: ubuntu-latest - # steps: - # - name: Debug Network - # run: | - # curl -v https://git.asherfalcon.com/ || true - # ping -c 4 git.asherfalcon.com || true - - # - name: Setup Git - # run: | - # git config --global http.sslVerify false - # git config --global --add safe.directory '*' - # # Add verbose debugging - # export GIT_CURL_VERBOSE=1 - # export GIT_TRACE=1 - - # - name: Manual Checkout - # run: | - # git init - # git remote add origin "https://${{ secrets.Pat }}@git.***falcon.com/***/***falcon.com.git" - # git fetch --depth 1 origin main - # git checkout main steps: - name: Configure Git SSL - run: | - git config --global http.sslVerify false - git config --global --add safe.directory /workspace/* + run: git config --global http.sslVerify false - - name: Checkout repository - uses: actions/checkout@v4 - with: - # repository: https://git.asherfalcon.com/asher/asherfalcon.com.git - github-server-url: 'https://git.asherfalcon.com' + - name: Clone repository manually + run: | + git clone https://git.asherfalcon.com/asher/asherfalcon.com.git /workspace/asherfalcon.com + cd /workspace/asherfalcon.com + git checkout main - name: Log in to Gitea Container Registry run: echo "${{ secrets.PAT }}" | docker login git.asherfalcon.com -u ${{ secrets.USERNAME }} --password-stdin - name: Build Docker image - run: docker build -t git.asherfalcon.com/asher/asherfalcon.com:latest . + run: docker build -t git.asherfalcon.com/asher/asherfalcon.com:latest /workspace/asherfalcon.com - name: Push Docker image run: docker push git.asherfalcon.com/asher/asherfalcon.com:latest