Update .gitea/workflows/build-image.yml
This commit is contained in:
parent
656d7b1149
commit
527a9f74ce
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user