feat: add version number to docker image

This commit is contained in:
hackerESQ
2025-07-16 17:07:25 -05:00
parent 90a15ceddb
commit cf475657cf
3 changed files with 6 additions and 0 deletions
@@ -61,4 +61,6 @@ jobs:
file: ./docker/Dockerfile file: ./docker/Dockerfile
push: true push: true
tags: ${{ steps.extract-version.outputs.tags }} tags: ${{ steps.extract-version.outputs.tags }}
build-args: |
VERSION=${{ github.ref_name }}
+3
View File
@@ -44,6 +44,9 @@ FROM php:8.3-fpm-alpine
# Set the working directory # Set the working directory
WORKDIR /var/app WORKDIR /var/app
ARG VERSION=dev
ENV VERSION=$VERSION
# Copy necessary files from the builder stage # Copy necessary files from the builder stage
COPY --from=builder /var/app /var/app COPY --from=builder /var/app /var/app
COPY --from=builder /usr/local/etc/php/conf.d /usr/local/etc/php/conf.d COPY --from=builder /usr/local/etc/php/conf.d /usr/local/etc/php/conf.d
+1
View File
@@ -4,6 +4,7 @@ cd /var/app
# Starting Investbrain # Starting Investbrain
echo "CuKWhOKWliAgICAgICAg4paXIOKWjCAgICAg4paYICAK4paQIOKWm+KWjOKWjOKWjOKWiOKWjOKWm+KWmOKWnOKWmOKWm+KWjOKWm+KWmOKWgOKWjOKWjOKWm+KWjArilp/ilpbilozilozilprilpjilpnilpbiloTilozilpDilpbilpnilozilowg4paI4paM4paM4paM4paMCg==" | base64 -d echo "CuKWhOKWliAgICAgICAg4paXIOKWjCAgICAg4paYICAK4paQIOKWm+KWjOKWjOKWjOKWiOKWjOKWm+KWmOKWnOKWmOKWm+KWjOKWm+KWmOKWgOKWjOKWjOKWm+KWjArilp/ilpbilozilozilprilpjilpnilpbiloTilozilpDilpbilpnilozilowg4paI4paM4paM4paM4paMCg==" | base64 -d
printf "%15s$VERSION\n"
echo -e "\n====================== Validating environment... ====================== " echo -e "\n====================== Validating environment... ====================== "