Track immutable production revision and record browser acceptance
Build and deploy / deploy (push) Successful in 9s

This commit is contained in:
huncode committed 2026-10-26 14:26:17 +03:00
1 parent a2829a6528
commit 4ee9c0ef81
5 files changed
+43 -9

No files matched your search

+7 -9
View File
@@ -6,6 +6,10 @@ on:
- master
workflow_dispatch:
concurrency:
group: production-progcode
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
@@ -37,14 +41,8 @@ jobs:
short_sha="${GITHUB_SHA:-${GITEA_SHA:-manual}}"
short_sha="${short_sha:0:12}"
if [ -z "${IMAGE}" ]; then
: "${IMAGE_REPO:?Set IMAGE or IMAGE_REPO in Gitea variables}"
IMAGE="${IMAGE_REPO}:${short_sha}"
fi
if [ -z "${IMAGE_REPO}" ]; then
IMAGE_REPO="${IMAGE%:*}"
fi
IMAGE_REPO="git.pryanik.synology.me/huncode/progcode"
IMAGE="${IMAGE_REPO}:${short_sha}"
{
echo "IMAGE=${IMAGE}"
@@ -74,7 +72,7 @@ jobs:
shell: bash
run: |
set -euo pipefail
docker build --pull -t "${IMAGE}" .
docker build --pull --build-arg SOURCE_COMMIT="${GITHUB_SHA:-${GITEA_SHA:-unknown}}" -t "${IMAGE}" .
- name: Push image
shell: bash