feat: add build time and version info to Docker image and page footer

Agent-Logs-Url: https://github.com/wahyd4/links/sessions/514d1f3d-d003-4f16-9a54-d221dba306f7

Co-authored-by: wahyd4 <836576+wahyd4@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-27 01:12:04 +00:00
co-authored by wahyd4
parent 6d9d08d132
commit 768ab6c5d8
5 changed files with 31 additions and 0 deletions
+7
View File
@@ -60,6 +60,10 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Set build timestamp
id: build_time
run: echo "value=$(date -u '+%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_OUTPUT
# Build and push main application image
- name: Build and push Docker image
uses: docker/build-push-action@v6
@@ -72,6 +76,9 @@ jobs:
ghcr.io/wahyd4/links:1.0.${{ github.run_number }}
labels: |-
${{ steps.meta.outputs.labels }}
build-args: |-
BUILD_TIME=${{ steps.build_time.outputs.value }}
BUILD_VERSION=1.0.${{ github.run_number }}
- name: Deploy to Kubernetes
uses: wahyd4/kubectl-helm-action@master