fix: correct GITEA_TOKEN to GITEATOKEN in build-and-push workflow
Some checks failed
Build and Push Docker Image / build (push) Failing after 4s
Some checks failed
Build and Push Docker Image / build (push) Failing after 4s
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
||||
run: |
|
||||
# Configure git to use the token
|
||||
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
|
||||
git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||
@@ -24,6 +24,6 @@ jobs:
|
||||
|
||||
- name: Build and push
|
||||
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 push ${{ gitea.server_url }}/${{ gitea.repository_owner }}/hello-gitea:latest
|
||||
|
||||
Reference in New Issue
Block a user