feat: single-container deployment & automated semantic versioning; add release workflow, version injection, health endpoint metadata, documentation
This commit is contained in:
@@ -11,6 +11,7 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- development
|
||||
workflow_call: # Allow this workflow to be called by other workflows
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
@@ -56,6 +57,7 @@ jobs:
|
||||
type=sha,prefix={{branch}}-
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
@@ -66,9 +68,9 @@ jobs:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
build-args: |
|
||||
BUILD_DATE=${{ github.event.head_commit.timestamp }}
|
||||
VCS_REF=${{ github.sha }}
|
||||
VERSION=${{ steps.meta.outputs.version }}
|
||||
BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||
VCS_REF=${{ github.sha }}
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.build-and-push.outputs.digest }}
|
||||
|
||||
Reference in New Issue
Block a user