From f8430d8f7380e7654a1ee420d16b797d57ac2654 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 7 Jul 2023 09:00:34 +0800 Subject: [PATCH] 0.7.6 --- .github/workflows/appmanage_docker.yml | 9 ++++++++- appmanage/Dockerfile | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/appmanage_docker.yml b/.github/workflows/appmanage_docker.yml index 5f52ed95..61ba6249 100644 --- a/.github/workflows/appmanage_docker.yml +++ b/.github/workflows/appmanage_docker.yml @@ -18,11 +18,18 @@ jobs: - uses: actions/checkout@v2 name: Check out code + - name: Get version + if: ${{ steps.check_changes.outputs.appmanage_changed == 'true' }} + run: | + version=$(grep -Po '(?<=LABEL version=").*?(?=")' appmanage/Dockerfile) + echo $version + echo "::set-output name=version::$version" + - uses: mr-smithers-excellent/docker-build-push@v5 name: Build & push Docker image with: image: websoft9dev/appmanage - tags: 0.7.3 + tags: ${{ steps.get_version.outputs.version }} registry: docker.io dockerfile: appmanage/Dockerfile directory: appmanage diff --git a/appmanage/Dockerfile b/appmanage/Dockerfile index a6cb3122..d767626f 100644 --- a/appmanage/Dockerfile +++ b/appmanage/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.10-slim LABEL maintainer="Websoft9" -LABEL version="0.7.3" +LABEL version="0.7.6" # Create API Directory WORKDIR /usr/src/app