Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a18854894 | ||
|
|
c157c599ea | ||
|
|
810069d1fe |
@@ -97,12 +97,34 @@ jobs:
|
|||||||
&& echo "NetBird management connected." \
|
&& echo "NetBird management connected." \
|
||||||
|| { echo "::error title=NetBird not connected::Management not connected after netbird up."; exit 1; }
|
|| { echo "::error title=NetBird not connected::Management not connected after netbird up."; exit 1; }
|
||||||
|
|
||||||
- name: Deploy to talos-prod
|
- name: Deploy image to talos-prod
|
||||||
uses: actions-hub/kubectl@v1.36.2
|
uses: actions-hub/kubectl@v1.36.2
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
with:
|
with:
|
||||||
args: get pods
|
args: >-
|
||||||
|
-n blog-ahmza-com
|
||||||
|
set image deployment/blog
|
||||||
|
blog=${{ env.REGISTRY }}/${{ gitea.repository_owner }}/blog-ahmza-com:${{ gitea.event.head_commit.id }}
|
||||||
|
|
||||||
|
- name: Wait for rollout
|
||||||
|
uses: actions-hub/kubectl@v1.36.2
|
||||||
|
env:
|
||||||
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
|
with:
|
||||||
|
args: >-
|
||||||
|
-n blog-ahmza-com
|
||||||
|
rollout status deployment/blog
|
||||||
|
--timeout=5m
|
||||||
|
|
||||||
|
- name: Show deployed pods
|
||||||
|
uses: actions-hub/kubectl@v1.36.2
|
||||||
|
env:
|
||||||
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
|
with:
|
||||||
|
args: >-
|
||||||
|
-n blog-ahmza-com
|
||||||
|
get pods -o wide
|
||||||
|
|
||||||
- name: NetBird diagnostics & disconnect
|
- name: NetBird diagnostics & disconnect
|
||||||
# Runs even on failure: captures final state for debugging and tears the
|
# Runs even on failure: captures final state for debugging and tears the
|
||||||
|
|||||||
+11
-1
@@ -5,7 +5,17 @@
|
|||||||
# on TARGETPLATFORM, so multi-arch (amd64 + arm64) runtime images are preserved.
|
# on TARGETPLATFORM, so multi-arch (amd64 + arm64) runtime images are preserved.
|
||||||
FROM --platform=$BUILDPLATFORM ghcr.io/hugomods/hugo:0.157.0 AS build
|
FROM --platform=$BUILDPLATFORM ghcr.io/hugomods/hugo:0.157.0 AS build
|
||||||
WORKDIR /tmp/hugo
|
WORKDIR /tmp/hugo
|
||||||
COPY . .
|
|
||||||
|
COPY go.mod ./
|
||||||
|
RUN hugo mod get
|
||||||
|
|
||||||
|
COPY archetypes ./archetypes
|
||||||
|
COPY assets ./assets
|
||||||
|
COPY content ./content
|
||||||
|
COPY static ./static
|
||||||
|
COPY themes ./themes
|
||||||
|
COPY hugo.* ./
|
||||||
|
|
||||||
RUN hugo --gc --minify
|
RUN hugo --gc --minify
|
||||||
|
|
||||||
FROM ghcr.io/static-web-server/static-web-server:2
|
FROM ghcr.io/static-web-server/static-web-server:2
|
||||||
|
|||||||
Reference in New Issue
Block a user