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
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 / Explore Gitea Actions - 2 (pull_request) Has been skipped
Gitea Actions Demo 2 / Builder (pull_request) Successful in 1m50s
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
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 / Explore Gitea Actions - 2 (pull_request) Has been skipped
Gitea Actions Demo 2 / Builder (pull_request) Successful in 1m50s
This commit is contained in:
@ -69,7 +69,7 @@ jobs:
|
|||||||
OWNER: ${{ gitea.actor }}
|
OWNER: ${{ gitea.actor }}
|
||||||
run: |
|
run: |
|
||||||
#docker buildx build --no-cache -t eberen/services:backend-$APP_VERSION .
|
#docker buildx build --no-cache -t eberen/services:backend-$APP_VERSION .
|
||||||
docker buildx build --platform linux/amd64 -t $GITEA_REGISTRY_URL/$OWNER/$IMAGE_NAME-backend:$APP_VERSION .
|
docker buildx build --platform linux/amd64 -t $GITEA_REGISTRY_URL/$OWNER/$IMAGE_NAME:$APP_VERSION .
|
||||||
#docker buildx build \
|
#docker buildx build \
|
||||||
# --platform linux/amd64 \
|
# --platform linux/amd64 \
|
||||||
# -t $IMAGE_NAME:latest \
|
# -t $IMAGE_NAME:latest \
|
||||||
@ -85,21 +85,19 @@ jobs:
|
|||||||
- name: Push Docker image to Gitea Registry
|
- name: Push Docker image to Gitea Registry
|
||||||
env:
|
env:
|
||||||
GITEA_USERNAME: ${{ gitea.actor }}
|
GITEA_USERNAME: ${{ gitea.actor }}
|
||||||
#GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
||||||
#LOGIN_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
|
||||||
LOGIN_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
LOGIN_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
||||||
LOGIN_TOKEN_1: ${{ secrets.GITEA_TOKEN }}
|
#LOGIN_TOKEN_1: ${{ secrets.GITEA_TOKEN }}
|
||||||
LOGIN_TOKEN_2: ${{ env.LOGIN_TOKEN }}
|
#LOGIN_TOKEN_2: ${{ 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 "LOGIN_TOKEN: $LOGIN_TOKEN"
|
||||||
echo "LOGIN_TOKEN_1: $LOGIN_TOKEN_1"
|
|
||||||
echo "REGISTRY_URL: $GITEA_REGISTRY_URL"
|
echo "REGISTRY_URL: $GITEA_REGISTRY_URL"
|
||||||
#docker login $GITEA_REGISTRY_URL -u $GITEA_USERNAME -p $LOGIN_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
|
||||||
|
docker push $GITEA_REGISTRY_URL/$GITEA_USERNAME/my-app:latest
|
||||||
|
docker logout $GITEA_REGISTRY_URL
|
||||||
|
docker system prune -f
|
||||||
pwd
|
pwd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user