fix: correct GITEA_TOKEN to GITEATOKEN in build-and-push workflow
Some checks failed
Build and Push Docker Image / build (push) Failing after 4s

This commit is contained in:
Grzegorz Matoga
2025-07-24 18:22:58 +02:00
parent 98713fa4c3
commit 8e27adb991

View File

@@ -13,7 +13,7 @@ jobs:
run: | run: |
# Configure git to use the token # Configure git to use the token
git config --global credential.helper store git config --global credential.helper store
echo "https://${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }}@${{ gitea.server_url }}" > ~/.git-credentials echo "https://${{ gitea.actor }}:${{ secrets.GITEATOKEN }}@${{ gitea.server_url }}" > ~/.git-credentials
# Clone without credentials in URL # Clone without credentials in URL
git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git . git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
@@ -24,6 +24,6 @@ jobs:
- name: Build and push - name: Build and push
run: | run: |
echo "${{ secrets.GITEA_TOKEN }}" | docker login ${{ gitea.server_url }} -u ${{ gitea.actor }} --password-stdin echo "${{ secrets.GITEATOKEN }}" | docker login ${{ gitea.server_url }} -u ${{ gitea.actor }} --password-stdin
docker build -t ${{ gitea.server_url }}/${{ gitea.repository_owner }}/hello-gitea:latest . docker build -t ${{ gitea.server_url }}/${{ gitea.repository_owner }}/hello-gitea:latest .
docker push ${{ gitea.server_url }}/${{ gitea.repository_owner }}/hello-gitea:latest docker push ${{ gitea.server_url }}/${{ gitea.repository_owner }}/hello-gitea:latest