mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
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:
co-authored by
wahyd4
parent
6d9d08d132
commit
768ab6c5d8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user