Update .gitea/workflows/build-image.yml
Some checks failed
Image Build / init (push) Successful in 7s
Image Build / iventoy image (push) Failing after 5s

This commit is contained in:
Sthope 2024-04-23 20:07:34 +02:00
parent 656d7b1149
commit 527a9f74ce

View File

@ -47,11 +47,13 @@ jobs:
run: |
echo "Checkout repository"
- name: Login to Docker Hub
run: |
echo "${DOCKERHUB_TOKEN}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
run: |
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 build -t $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest --build-arg IVENTOY=$GITEA_IVENTOY .
docker push $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest
docker tag $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest
docker push $DOCKERHUB_USERNAME/${GITEA_REPOSITORY_NAME}:latest