Compare commits

1 Commits

Author SHA1 Message Date
e8f913d514 Merge branch 'preview' into feature/test-pipeline 2026-04-03 08:40:09 +00:00
3 changed files with 10 additions and 10 deletions

View File

@@ -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 ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . run: git clone --branch preview 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 ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . run: git clone --branch preview 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-staging.vezpi.com/en/" URL: "https://blog-dev.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/${{ gitea.ref_name }} git merge --ff-only origin/preview
git push origin main git push origin main
Deploy-Production: Deploy-Production:
@@ -194,7 +194,7 @@ jobs:
steps: steps:
- name: Remove Old Docker Image - name: Remove Old Docker Image
run: | run: |
docker image rm $(docker image ls ${DOCKER_IMAGE} 2> /dev/null | awk '$NF != "U" && NR>1 {print $2}') docker image rm ${{ needs.Check-Rebuild.outputs.current_docker_image }} --force
Notify: Notify:
needs: [Check-Rebuild, Build, Deploy-Staging, Test-Staging, Merge, Deploy-Production, Test-Production, Clean] needs: [Check-Rebuild, Build, Deploy-Staging, Test-Staging, Merge, Deploy-Production, Test-Production, Clean]

View File

@@ -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}:dev docker tag ${DOCKER_IMAGE}:${{ needs.Check-Rebuild.outputs.latest_hugo_version }} ${DOCKER_IMAGE}:test
Deploy-Test: Deploy-Test:
needs: needs:
@@ -102,7 +102,7 @@ jobs:
run: run:
shell: sh shell: sh
env: env:
CONTAINER_NAME: blog_dev CONTAINER_NAME: blog_test
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-dev.vezpi.com/en/" URL: "https://blog-test.vezpi.com/en/"
steps: steps:
- name: Check HTTP Response - name: Check HTTP Response
run: | run: |

View File

@@ -7,7 +7,7 @@
{{ $color := partial "helper/color-from-str" .LinkTitle }} {{ $color := partial "helper/color-from-str" .LinkTitle }}
{{ $BackgroundColor := default $color.BackgroundColor .Params.style.background }} {{ $BackgroundColor := default $color.BackgroundColor .Params.style.background }}
{{ $TextColor := default $color.TextColor .Params.style.color }} {{ $TextColor := default $color.TextColor .Params.style.color }}
<a href="{{ $Page.RelPermalink }}" style="background-color: {{ $BackgroundColor | safeCSS }}; color: {{ $TextColor | safeCSS }};"> <a href="{{ .RelPermalink }}" style="background-color: {{ $BackgroundColor | safeCSS }}; color: {{ $TextColor | safeCSS }};">
{{ .LinkTitle }} {{ .LinkTitle }}
</a> </a>
{{ end }} {{ end }}
@@ -16,7 +16,7 @@
<div class="article-title-wrapper"> <div class="article-title-wrapper">
<h2 class="article-title"> <h2 class="article-title">
<a href="{{ $Page.RelPermalink }}"> <a href="{{ .RelPermalink }}">
{{- $Page.Title -}} {{- $Page.Title -}}
</a> </a>
</h2> </h2>