fix login 2
All checks were successful
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
Gitea Actions Demo 2 / Builder (pull_request) Successful in 1m48s
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
All checks were successful
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
Gitea Actions Demo 2 / Builder (pull_request) Successful in 1m48s
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
This commit is contained in:
@ -86,18 +86,14 @@ jobs:
|
||||
env:
|
||||
GITEA_USERNAME: ${{ gitea.actor }}
|
||||
LOGIN_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
||||
#LOGIN_TOKEN_1: ${{ secrets.GITEA_TOKEN }}
|
||||
#LOGIN_TOKEN_2: ${{ env.LOGIN_TOKEN }}
|
||||
GITEA_REGISTRY_URL: ${{ vars.REGISTRY_URL }}
|
||||
run: |
|
||||
echo "GITEA_REGISTRY_URL: $GITEA_REGISTRY_URL"
|
||||
echo "LOGIN_TOKEN: $LOGIN_TOKEN"
|
||||
echo "REGISTRY_URL: $GITEA_REGISTRY_URL"
|
||||
# Login securely
|
||||
echo "$LOGIN_TOKEN" | docker login $GITEA_REGISTRY_URL --username $GITEA_USERNAME --password-stdin
|
||||
docker push $GITEA_REGISTRY_URL/$GITEA_USERNAME/my-app:latest
|
||||
docker push $GITEA_REGISTRY_URL/$GITEA_USERNAME/my-app:latest
|
||||
docker logout $GITEA_REGISTRY_URL
|
||||
docker system prune -f
|
||||
pwd
|
||||
pwd
|
||||
cd && ls -la
|
||||
|
||||
|
||||
Reference in New Issue
Block a user