login token 2
Some checks failed
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Has been skipped
checks / Set up Java for Backend Tests and Build (push) Has been skipped
Gitea Actions Demo / Explore Gitea Actions - 2 (pull_request) Has been skipped
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (pull_request) Has been skipped
checks / Set up Java for Backend Tests and Build (pull_request) Has been skipped
Gitea Actions Demo 2 / Builder (pull_request) Failing after 2m10s
Some checks failed
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Has been skipped
checks / Set up Java for Backend Tests and Build (push) Has been skipped
Gitea Actions Demo / Explore Gitea Actions - 2 (pull_request) Has been skipped
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (pull_request) Has been skipped
checks / Set up Java for Backend Tests and Build (pull_request) Has been skipped
Gitea Actions Demo 2 / Builder (pull_request) Failing after 2m10s
This commit is contained in:
@ -84,14 +84,18 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_USERNAME: ${{ gitea.actor }}
|
GITEA_USERNAME: ${{ gitea.actor }}
|
||||||
#GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
#GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
GITEA_TOKEN: ${{ secrets.ALL_REPO_TOKEN }}
|
#LOGIN_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
||||||
LOGIN_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
||||||
|
LOGIN_TOKEN: ${{ env.LOGIN_TOKEN }}
|
||||||
GITEA_REGISTRY_URL: ${{ vars.REGISTRY_URL }}
|
GITEA_REGISTRY_URL: ${{ vars.REGISTRY_URL }}
|
||||||
run: |
|
run: |
|
||||||
echo "GITEA_REGISTRY_URL: $GITEA_REGISTRY_URL"
|
echo "GITEA_REGISTRY_URL: $GITEA_REGISTRY_URL"
|
||||||
|
echo "LOGIN_TOKEN: $LOGIN_TOKEN"
|
||||||
|
echo "GITEA_TOKEN: $GITEA_TOKEN"
|
||||||
#docker login $GITEA_REGISTRY_URL -u $GITEA_USERNAME -p $GITEA_TOKEN
|
#docker login $GITEA_REGISTRY_URL -u $GITEA_USERNAME -p $GITEA_TOKEN
|
||||||
# Login securely
|
# Login securely
|
||||||
echo "$LOGIN_TOKEN" | docker login $GITEA_REGISTRY_URL --username $GITEA_USERNAME --password-stdin
|
#echo "$LOGIN_TOKEN" | docker login $GITEA_REGISTRY_URL --username $GITEA_USERNAME --password-stdin
|
||||||
|
echo "$LOGIN_TOKEN" | docker login ghcr.io -u $GITEA_USERNAME --password-stdin
|
||||||
docker push $GITEA_REGISTRY_URL/$GITEA_USERNAME/my-app:latest
|
docker push $GITEA_REGISTRY_URL/$GITEA_USERNAME/my-app:latest
|
||||||
pwd
|
pwd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user