generated from hjess/PythonTemplateProject
Merge pull request 'Lets go back' (#11) from mvc into main
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 32s
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 32s
Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
@@ -35,29 +35,6 @@ jobs:
|
|||||||
NOMAD_ADDR: https://nomad.i80.dk
|
NOMAD_ADDR: https://nomad.i80.dk
|
||||||
run: nomad job validate .gitea/workflows/nomad-job.hcl
|
run: nomad job validate .gitea/workflows/nomad-job.hcl
|
||||||
|
|
||||||
- name: Apply Nomad Job
|
|
||||||
env:
|
|
||||||
NOMAD_ADDR: https://nomad.i80.dk
|
|
||||||
run: nomad job run .gitea/workflows/nomad-job.hcl
|
|
||||||
|
|
||||||
- name: Wait for New Job to Become Healthy
|
|
||||||
env:
|
|
||||||
NOMAD_ADDR: https://nomad.i80.dk
|
|
||||||
run: |
|
|
||||||
echo "Waiting for the new job to become healthy..."
|
|
||||||
|
|
||||||
# Fetch the latest allocation ID for the job
|
|
||||||
NEW_ALLOC=$(nomad job status lifefaq | awk '/ID/ {getline; print $1}' | tail -n 1)
|
|
||||||
echo "Latest allocation ID: $NEW_ALLOC"
|
|
||||||
|
|
||||||
# Wait for the new allocation to become healthy
|
|
||||||
until nomad alloc status $NEW_ALLOC | grep -q "Client Status.*running"; do
|
|
||||||
echo "New allocation not healthy yet, retrying..."
|
|
||||||
sleep 5
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "New allocation is healthy!"
|
|
||||||
|
|
||||||
- name: Stop old deployment
|
- name: Stop old deployment
|
||||||
env:
|
env:
|
||||||
NOMAD_ADDR: https://nomad.i80.dk
|
NOMAD_ADDR: https://nomad.i80.dk
|
||||||
@@ -65,7 +42,10 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
|
||||||
|
- name: Apply Nomad Job
|
||||||
|
env:
|
||||||
|
NOMAD_ADDR: https://nomad.i80.dk
|
||||||
|
run: nomad job run .gitea/workflows/nomad-job.hcl
|
||||||
|
|
||||||
- name: Update Nginx Configuration
|
- name: Update Nginx Configuration
|
||||||
run: ssh runner@nomad sudo /opt/nginx_updater/venv/bin/python3 /opt/nginx_updater/nginx_updater.py lifefaq
|
run: ssh runner@nomad sudo /opt/nginx_updater/venv/bin/python3 /opt/nginx_updater/nginx_updater.py lifefaq
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
name: "El- og vandregninger i Portugal: Sådan påvirker de leveomkostningerne"
|
name: El- og vandregninger i Portugal: Sådan påvirker de leveomkostningerne
|
||||||
description: "Undersøg hvordan elregninger og vandgebyrer i Portugal påvirker leveomkostningerne. Få indsigt i boligudgifter, dagligvarer og sammenligning med Danmark."
|
description: Undersøg hvordan elregninger og vandgebyrer i Portugal påvirker leveomkostningerne. Få indsigt i boligudgifter, dagligvarer og sammenligning med Danmark.
|
||||||
author: "Henrik Jess"
|
author: Henrik Jess
|
||||||
date: ons 11 dec 23:20:00 CET 2024
|
date: ons 11 dec 23:20:00 CET 2024
|
||||||
summary: "Leveomkostningerne i Portugal er lave, især på bolig og dagligvarer. Få indsigt i, hvordan du kan leve godt og billigt under sydens sol med et gennemtænkt budget."
|
summary: Leveomkostningerne i Portugal er lave, især på bolig og dagligvarer. Få indsigt i, hvordan du kan leve godt og billigt under sydens sol med et gennemtænkt budget.
|
||||||
image: images/pic08.jpg
|
image: images/pic08.jpg
|
||||||
category: "Økonomi"
|
category: Økonomi
|
||||||
tags: ["Portugal", "Leveomkostninger", "Elregninger", "Vandregninger", "Gebyrer"]
|
tags: ["Portugal", "Leveomkostninger", "Elregninger", "Vandregninger", "Gebyrer"]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user