增加Docker镜像latest标签

This commit is contained in:
chishin 2024-10-17 10:37:11 +08:00
parent e1bb8a87ed
commit ce6247593e

View File

@ -25,7 +25,7 @@ jobs:
- name: 添加BuildTag环境变量release - name: 添加BuildTag环境变量release
if: ${{ github.event_name == 'release'}} if: ${{ github.event_name == 'release'}}
run: | run: |
echo "BUILD_TAG=-t ${BUILD_IMAGE}:${BUILD_VERSION} -t ${BUILD_IMAGE}:${BUILD_VERSION%.*} -t ${BUILD_IMAGE}:${BUILD_VERSION%.*.*} -t ${BUILD_IMAGE}:release" >> $GITHUB_ENV echo "BUILD_TAG=-t ${BUILD_IMAGE}:${BUILD_VERSION} -t ${BUILD_IMAGE}:${BUILD_VERSION%.*} -t ${BUILD_IMAGE}:${BUILD_VERSION%.*.*} -t ${BUILD_IMAGE}:release -t ${BUILD_IMAGE}:latest" >> $GITHUB_ENV
- name: 登录DockerHub账号 - name: 登录DockerHub账号
env: env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}