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