feat: create a dedicated dev pipeline (#10)
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 7s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 11s
Blog Deployment / Test-Staging (push) Successful in 4s
Blog Deployment / Merge (push) Successful in 8s
Blog Deployment / Deploy-Production (push) Successful in 12s
Blog Deployment / Test-Production (push) Successful in 3s
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Successful in 3s
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 7s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 11s
Blog Deployment / Test-Staging (push) Successful in 4s
Blog Deployment / Merge (push) Successful in 8s
Blog Deployment / Deploy-Production (push) Successful in 12s
Blog Deployment / Test-Production (push) Successful in 3s
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Successful in 3s
Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
@@ -24,7 +24,7 @@ jobs:
|
|||||||
docker_folder_changed: ${{ steps.docker_folder.outputs.changed }}
|
docker_folder_changed: ${{ steps.docker_folder.outputs.changed }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
run: git clone --branch preview https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
||||||
|
|
||||||
- name: Check Latest Hugo Version
|
- name: Check Latest Hugo Version
|
||||||
id: get_latest
|
id: get_latest
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
run: git clone --branch preview https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
@@ -116,7 +116,7 @@ jobs:
|
|||||||
needs: Deploy-Staging
|
needs: Deploy-Staging
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
env:
|
env:
|
||||||
URL: "https://blog-dev.vezpi.com/en/"
|
URL: "https://blog-staging.vezpi.com/en/"
|
||||||
steps:
|
steps:
|
||||||
- name: Check HTTP Response
|
- name: Check HTTP Response
|
||||||
run: |
|
run: |
|
||||||
@@ -143,7 +143,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Merge preview Branch on main
|
- name: Merge preview Branch on main
|
||||||
run: |
|
run: |
|
||||||
git merge --ff-only origin/preview
|
git merge --ff-only origin/${{ gitea.ref_name }}
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
Deploy-Production:
|
Deploy-Production:
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
--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}:test
|
docker tag ${DOCKER_IMAGE}:${{ needs.Check-Rebuild.outputs.latest_hugo_version }} ${DOCKER_IMAGE}:dev
|
||||||
|
|
||||||
Deploy-Test:
|
Deploy-Test:
|
||||||
needs:
|
needs:
|
||||||
@@ -102,7 +102,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: sh
|
shell: sh
|
||||||
env:
|
env:
|
||||||
CONTAINER_NAME: blog_test
|
CONTAINER_NAME: blog_dev
|
||||||
steps:
|
steps:
|
||||||
- name: Launch Blog Test Deployment
|
- name: Launch Blog Test Deployment
|
||||||
run: |
|
run: |
|
||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
needs: Deploy-Test
|
needs: Deploy-Test
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
env:
|
env:
|
||||||
URL: "https://blog-test.vezpi.com/en/"
|
URL: "https://blog-dev.vezpi.com/en/"
|
||||||
steps:
|
steps:
|
||||||
- name: Check HTTP Response
|
- name: Check HTTP Response
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user