using github var
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 2m30s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
Build, Push and Deploy / deploy-staging (push) Successful in 18s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 0s

This commit is contained in:
eko
2026-03-29 04:43:12 +07:00
parent c16631045f
commit fd7bbba665

View File

@@ -31,9 +31,9 @@ jobs:
- name: Set variables
id: vars
run: |
echo "image_tag=$(echo ${{ gitea.sha }} | cut -c1-8)" >> $GITEa_OUTPUT
echo "image_sha=${{ gitea.sha }}" >> $GITEa_OUTPUT
echo "build_time=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITEa_OUTPUT
echo "image_tag=$(echo ${{ gitea.sha }} | cut -c1-8)" >> $GITHUB_OUTPUT
echo "image_sha=${{ gitea.sha }}" >> $GITHUB_OUTPUT
echo "build_time=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -122,9 +122,9 @@ jobs:
id: prod_image
run: |
if [ -n "${{ gitea.event.inputs.image_tag }}" ]; then
echo "image_tag=${{ gitea.event.inputs.image_tag }}" >> $GITEa_OUTPUT
echo "image_tag=${{ gitea.event.inputs.image_tag }}" >> $GITHUB_OUTPUT
else
echo "image_tag=latest" >> $GITEa_OUTPUT
echo "image_tag=latest" >> $GITHUB_OUTPUT
fi
- name: Deploy to Production Server