This commit is contained in:
qiaofeng1227 2023-07-07 09:00:34 +08:00
parent 817880773e
commit f8430d8f73
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
FROM python:3.10-slim
LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="0.7.3"
LABEL version="0.7.6"
# Create API Directory
WORKDIR /usr/src/app