diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7cac9f6..9bbee03 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -56,6 +56,12 @@ jobs: id: get_version run: echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT + - name: Update version in app.php + run: | + VERSION=$(date '+%Y%m%d')-$(git rev-parse --short HEAD) + sed -i "s/'version' => '.*'/'version' => '$VERSION'/g" config/app.php + echo "Updated version to: $VERSION" + - name: Build and push id: build-and-push uses: docker/build-push-action@v5 diff --git a/config/app.php b/config/app.php index 07c0fad..9b9bff2 100755 --- a/config/app.php +++ b/config/app.php @@ -187,5 +187,5 @@ return [ | The only modification by laravel config | */ - 'version' => '0.1.1-dev' + 'version' => '0.0.1' ];