Skip to content

Commit 7d43adf

Browse files
ci: use tags for prod deploys instead of stable branch
1 parent b11e2a2 commit 7d43adf

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/prod-deployment.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Workflow for Production Environment Deployment
22

33
on:
4-
push:
5-
branches:
6-
- stable
4+
workflow_dispatch:
75

86
env:
97
CONFIG_ENV: ${{ secrets.CONFIG_ENV }}
@@ -57,3 +55,15 @@ jobs:
5755
-v "$(pwd)/log:/app/lexicapi/log:z" \
5856
-p "8081:8081" \
5957
"$REGISTRY/$REGISTRY_IMAGE:stable"
58+
59+
- name: Get Release Date
60+
id: get_release_date
61+
run: echo "RELEASE_DATE=$(TZ='Asia/Jakarta' date +'%A %d-%m-%Y %T WIB')" >> "$GITHUB_OUTPUT"
62+
63+
- name: Mark as Stable
64+
uses: ncipollo/release-action@v1
65+
with:
66+
allowUpdates: true
67+
body: "Stable release updated at ${{ steps.get_release_date.outputs.RELEASE_DATE }}"
68+
token: ${{ secrets.GH_TOKEN }}
69+
tag: stable

0 commit comments

Comments
 (0)