style: capitalize job names
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 4s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 8s
Blog Deployment / Test-Staging (push) Successful in 2s
Blog Deployment / Merge (push) Successful in 5s
Blog Deployment / Deploy-Production (push) Successful in 8s
Blog Deployment / Test-Production (push) Successful in 2s
Blog Deployment / Clean (push) Has been skipped
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 4s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 8s
Blog Deployment / Test-Staging (push) Successful in 2s
Blog Deployment / Merge (push) Successful in 5s
Blog Deployment / Deploy-Production (push) Successful in 8s
Blog Deployment / Test-Production (push) Successful in 2s
Blog Deployment / Clean (push) Has been skipped
This commit is contained in:
parent
404b5cc34c
commit
6a9aa3be2b
@ -9,7 +9,7 @@ env:
|
|||||||
DOCKER_IMAGE: vezpi-blog
|
DOCKER_IMAGE: vezpi-blog
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-rebuild:
|
Check-Rebuild:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@ -61,9 +61,9 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "changed=$docker_folder_changed" | tee -a $GITEA_OUTPUT
|
echo "changed=$docker_folder_changed" | tee -a $GITEA_OUTPUT
|
||||||
|
|
||||||
build:
|
Build:
|
||||||
needs: check-rebuild
|
needs: Check-Rebuild
|
||||||
if: needs.check-rebuild.outputs.newer_version_available == 'true' || needs.check-rebuild.outputs.docker_folder_changed == 'true'
|
if: needs.Check-Rebuild.outputs.newer_version_available == 'true' || needs.Check-Rebuild.outputs.docker_folder_changed == 'true'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@ -76,16 +76,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd docker
|
cd docker
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg HUGO_VERSION=${{ needs.check-rebuild.outputs.latest_hugo_version }} \
|
--build-arg HUGO_VERSION=${{ needs.Check-Rebuild.outputs.latest_hugo_version }} \
|
||||||
--tag ${DOCKER_IMAGE}:${{ needs.check-rebuild.outputs.latest_hugo_version }} \
|
--tag ${DOCKER_IMAGE}:${{ needs.Check-Rebuild.outputs.latest_hugo_version }} \
|
||||||
.
|
.
|
||||||
docker tag ${DOCKER_IMAGE}:${{ needs.check-rebuild.outputs.latest_hugo_version }} ${DOCKER_IMAGE}:latest
|
docker tag ${DOCKER_IMAGE}:${{ needs.Check-Rebuild.outputs.latest_hugo_version }} ${DOCKER_IMAGE}:latest
|
||||||
|
|
||||||
deploy-staging:
|
Deploy-Staging:
|
||||||
needs:
|
needs:
|
||||||
- check-rebuild
|
- Check-Rebuild
|
||||||
- build
|
- Build
|
||||||
if: always() && needs.check-rebuild.result == 'success' && (needs.build.result == 'skipped' || needs.build.result == 'success')
|
if: always() && needs.Check-Rebuild.result == 'success' && (needs.Build.result == 'skipped' || needs.Build.result == 'success')
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
volumes:
|
volumes:
|
||||||
@ -105,8 +105,8 @@ jobs:
|
|||||||
echo "- Displaying container logs"
|
echo "- Displaying container logs"
|
||||||
docker compose logs ${CONTAINER_NAME}
|
docker compose logs ${CONTAINER_NAME}
|
||||||
|
|
||||||
test-staging:
|
Test-Staging:
|
||||||
needs: deploy-staging
|
needs: Deploy-Staging
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
env:
|
env:
|
||||||
URL: "https://blog-dev.vezpi.com/en/"
|
URL: "https://blog-dev.vezpi.com/en/"
|
||||||
@ -123,8 +123,8 @@ jobs:
|
|||||||
echo "✅ Service is healthy"
|
echo "✅ Service is healthy"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
merge:
|
Merge:
|
||||||
needs: test-staging
|
needs: Test-Staging
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
@ -138,8 +138,8 @@ jobs:
|
|||||||
git merge --ff-only origin/preview
|
git merge --ff-only origin/preview
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
deploy-production:
|
Deploy-Production:
|
||||||
needs: merge
|
needs: Merge
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
volumes:
|
volumes:
|
||||||
@ -159,8 +159,8 @@ jobs:
|
|||||||
echo "- Displaying container logs"
|
echo "- Displaying container logs"
|
||||||
docker compose logs ${CONTAINER_NAME}
|
docker compose logs ${CONTAINER_NAME}
|
||||||
|
|
||||||
test-production:
|
Test-Production:
|
||||||
needs: deploy-production
|
needs: Deploy-Production
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
env:
|
env:
|
||||||
URL: "https://blog.vezpi.com/en/"
|
URL: "https://blog.vezpi.com/en/"
|
||||||
@ -177,16 +177,16 @@ jobs:
|
|||||||
echo "✅ Service is healthy"
|
echo "✅ Service is healthy"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clean:
|
Clean:
|
||||||
needs:
|
needs:
|
||||||
- check-rebuild
|
- Check-Rebuild
|
||||||
- build
|
- Build
|
||||||
- test-production
|
- Test-Production
|
||||||
if: needs.check-rebuild.outputs.newer_version_available == 'true'
|
if: needs.Check-Rebuild.outputs.newer_version_available == 'true'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: sh
|
shell: sh
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
run: docker image rm vezpi-blog:${{ needs.check-rebuild.outputs.current_hugo_version }} --force
|
run: docker image rm vezpi-blog:${{ needs.Check-Rebuild.outputs.current_hugo_version }} --force
|
Loading…
x
Reference in New Issue
Block a user