Fix default workflow
Some checks failed
default / build-and-push (push) Failing after 8s

This commit is contained in:
Michele Rossi
2026-01-10 22:11:06 +01:00
parent b31d1f7cbb
commit 096982162a

View File

@@ -12,26 +12,17 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
# Load variables from the .env file in the repository
- name: Load .env variables
run: |
if [ -f .env ]; then
grep -v '^#' .env >> $GITHUB_ENV
else
echo ".env file not found, skipping load."
fi
- name: Login to Gitea Registry - name: Login to Gitea Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY_URL }} registry: ${{ vars.REGISTRY_URL }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ env.AUTH_TOKEN }} password: ${{ secrets.AUTH_TOKEN }}
- name: Build Docker Image - name: Build Docker Image
run: | run: |
docker build -t ${{ env.REGISTRY_URL }}/${{ github.repository }}:latest . docker build -t ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest .
- name: Push Docker Image - name: Push Docker Image
run: | run: |
docker push ${{ env.REGISTRY_URL }}/${{ github.repository }}:latest docker push ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest