From 096982162a467bd814a8e8d563a901288ae4d5de Mon Sep 17 00:00:00 2001 From: Michele Rossi Date: Sat, 10 Jan 2026 22:11:06 +0100 Subject: [PATCH] Fix default workflow --- .gitea/workflows/default.yaml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/default.yaml b/.gitea/workflows/default.yaml index 196956c..80ec272 100644 --- a/.gitea/workflows/default.yaml +++ b/.gitea/workflows/default.yaml @@ -12,26 +12,17 @@ jobs: - name: Checkout repository 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 uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY_URL }} + registry: ${{ vars.REGISTRY_URL }} username: ${{ github.actor }} - password: ${{ env.AUTH_TOKEN }} + password: ${{ secrets.AUTH_TOKEN }} - name: Build Docker Image run: | - docker build -t ${{ env.REGISTRY_URL }}/${{ github.repository }}:latest . + docker build -t ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest . - name: Push Docker Image run: | - docker push ${{ env.REGISTRY_URL }}/${{ github.repository }}:latest \ No newline at end of file + docker push ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest \ No newline at end of file