diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1b1c126..87dfe78 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -27,11 +27,11 @@ jobs: docker build -t gitea-server:3000/ryan/chore:${{ steps.vars.outputs.tag }} . - name: Log in to Registry - run: | - cat /etc/hosts - sleep 5000 - # Use your Gitea credentials (secrets are safer, but this works for testing) - echo "0x013h" | docker login gitea-server:3000 -u ryan --password-stdin + uses: docker/login-action@v2 + with: + registry: my.gitea.domain # Replace with your Gitea registry URL + username: ryan #${{ secrets.REGISTRY_USERNAME }} # Stored as a Gitea secret + password: 0x013h #${{ secrets.REGISTRY_TOKEN }} # Stored as a Gitea secret (use a PAT here) - name: Push Image to Gitea Registry run: |