login token 3
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
Gitea Actions Demo 2 / Builder (pull_request) Failing after 30s
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
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
Gitea Actions Demo 2 / Builder (pull_request) Failing after 30s
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:
@ -51,12 +51,13 @@ jobs:
|
||||
#Build Docker image
|
||||
- name: Build Docker image
|
||||
env:
|
||||
GITEA_REGISTRY_URL: ${{ vars.REGISTRY_URL }}
|
||||
OWNER: ${{ gitea.actor }}
|
||||
IMAGE_NAME: my-app
|
||||
run: |
|
||||
#docker build -t $OWNER/my-app:latest .
|
||||
#docker build -t $GITEA_REGISTRY_URL/$OWNER/my-app:latest .
|
||||
# registry.domain.com/<username>/my-app:latest e.g. git.bepastem.com/eberen/my-app:latest
|
||||
docker build -t $OWNER/$IMAGE_NAME:latest .
|
||||
docker build -t #GITEA_REGISTRY_URL/$OWNER/$IMAGE_NAME:latest .
|
||||
|
||||
- name: Build and push Docker image using Buildx
|
||||
env:
|
||||
@ -68,7 +69,7 @@ jobs:
|
||||
OWNER: ${{ gitea.actor }}
|
||||
run: |
|
||||
#docker buildx build --no-cache -t eberen/services:backend-$APP_VERSION .
|
||||
docker buildx build --platform linux/amd64 -t $OWNER/services:$IMAGE_NAME-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 $IMAGE_NAME:latest \
|
||||
@ -86,9 +87,9 @@ jobs:
|
||||
GITEA_USERNAME: ${{ gitea.actor }}
|
||||
#GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
#LOGIN_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
||||
$LOGIN_TOKEN: ${{ secrets.LOGIN_TOKEN }}
|
||||
$LOGIN_TOKEN_1: ${{ secrets.GITEA_TOKEN }}
|
||||
$LOGIN_TOKEN_2: ${{ env.LOGIN_TOKEN }}
|
||||
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"
|
||||
@ -98,8 +99,8 @@ jobs:
|
||||
echo "REGISTRY_URL: $REGISTRY_URL"
|
||||
#docker login $GITEA_REGISTRY_URL -u $GITEA_USERNAME -p $LOGIN_TOKEN
|
||||
# Login securely
|
||||
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
|
||||
#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
|
||||
pwd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user