workflow changed
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 4s

This commit is contained in:
Asher 2025-02-23 18:25:00 +00:00
parent 471092f00f
commit 4945193427

View File

@ -3,49 +3,27 @@ name: Build and Push Docker Image
on: on:
push: push:
branches: branches:
- main # Change this if your default branch is different - main
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest 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: steps:
- name: Configure Git SSL - name: Configure Git SSL
run: | run: git config --global http.sslVerify false
git config --global http.sslVerify false
git config --global --add safe.directory /workspace/*
- name: Checkout repository - name: Clone repository manually
uses: actions/checkout@v4 run: |
with: git clone https://git.asherfalcon.com/asher/asherfalcon.com.git /workspace/asherfalcon.com
# repository: https://git.asherfalcon.com/asher/asherfalcon.com.git cd /workspace/asherfalcon.com
github-server-url: 'https://git.asherfalcon.com' git checkout main
- name: Log in to Gitea Container Registry - name: Log in to Gitea Container Registry
run: echo "${{ secrets.PAT }}" | docker login git.asherfalcon.com -u ${{ secrets.USERNAME }} --password-stdin run: echo "${{ secrets.PAT }}" | docker login git.asherfalcon.com -u ${{ secrets.USERNAME }} --password-stdin
- name: Build Docker image - 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 - name: Push Docker image
run: docker push git.asherfalcon.com/asher/asherfalcon.com:latest run: docker push git.asherfalcon.com/asher/asherfalcon.com:latest