Update .gitea/workflows/build-image.yml

This commit is contained in:
Sthope 2024-04-23 19:49:19 +02:00
parent 672e1e9c47
commit b3c146f9dc

View File

@ -45,10 +45,10 @@ jobs:
echo "Checkout repository"
- name: Login to Docker Hub
run: |
docker login -u $GITEA_DOCKERHUB_USERNAME -p $GITEA_DOCKERHUB_TOKEN
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_TOKEN
- name: Build and push
run: |
docker build -t $GITEA_DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:${GITEA_IVENTOY} --build-arg IVENTOY=$GITEA_IVENTOY .
docker push $GITEA_DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:${GITEA_IVENTOY}
docker tag $GITEA_DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:${GITEA_IVENTOY} $GITEA_DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest
docker push $GITEA_DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest
docker build -t $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:${GITEA_IVENTOY} --build-arg IVENTOY=$GITEA_IVENTOY .
docker push $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:${GITEA_IVENTOY}
docker tag $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:${GITEA_IVENTOY} $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest
docker push $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest