login to dockerhub in release workflow before build docker

This commit is contained in:
fredwang 2024-10-30 13:59:04 +08:00
parent 39bc806876
commit 128397bdf5
1 changed files with 5 additions and 5 deletions

View File

@ -48,17 +48,17 @@ jobs:
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Login to Docker Hub.
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker.
run: |
cd ByConity/docker/debian/release
BUILD_TYPE=Release CMAKE_FLAGS="-DENABLE_JAVA_EXTENSIONS=0" TAG=${{ github.ref_name }} make image-github
cd -
docker images
- name: Login to Docker Hub.
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Dockers.
run: |
docker push byconity/byconity:${{ github.ref_name }}