pipe
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (amd64) (push) Successful in 15s
Haven Notify Build and Deploy / Deploy Haven Notify (push) Successful in 10s

This commit is contained in:
2025-08-16 22:30:04 -03:00
parent a7fcd1b4fe
commit 6879e4d2bf

View File

@@ -16,37 +16,37 @@ env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
jobs: jobs:
build_haven_notify: # build_haven_notify:
name: Build Haven Notify Image (arm64) # name: Build Haven Notify Image (arm64)
runs-on: ubuntu-arm64 # runs-on: ubuntu-arm64
steps: # steps:
- name: Check out repository # - name: Check out repository
uses: actions/checkout@v2 # uses: actions/checkout@v2
- name: Install Docker # - name: Install Docker
run: | # run: |
apt-get update # apt-get update
apt-get install -y docker.io # apt-get install -y docker.io
- name: Log in to Container Registry # - name: Log in to Container Registry
run: | # run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" \ # echo "${{ secrets.REGISTRY_PASSWORD }}" \
| docker login "${{ env.REGISTRY_HOST }}" \ # | docker login "${{ env.REGISTRY_HOST }}" \
-u "${{ env.REGISTRY_USERNAME }}" \ # -u "${{ env.REGISTRY_USERNAME }}" \
--password-stdin # --password-stdin
- name: Build and Push Image # - name: Build and Push Image
run: | # run: |
TAG=latest # TAG=latest
cd haven-notify # cd haven-notify
docker build \ # docker build \
-t "${{ env.IMAGE_NOTIFY }}:${TAG}" \ # -t "${{ env.IMAGE_NOTIFY }}:${TAG}" \
-f Dockerfile . # -f Dockerfile .
docker push "${{ env.IMAGE_NOTIFY }}:${TAG}" # docker push "${{ env.IMAGE_NOTIFY }}:${TAG}"
build_haven_notify_amd64: build_haven_notify_amd64:
name: Build Haven Notify Image (amd64) name: Build Haven Notify Image (amd64)
@@ -82,8 +82,8 @@ jobs:
deploy_haven_notify: deploy_haven_notify:
name: Deploy Haven Notify name: Deploy Haven Notify
runs-on: ubuntu-arm64 runs-on: ubuntu-amd64
needs: build_haven_notify needs: build_haven_notify_amd64
steps: steps:
- name: Check KUBE_CONFIG validity - name: Check KUBE_CONFIG validity
run: | run: |
@@ -99,7 +99,7 @@ jobs:
run: | run: |
apt-get update -y apt-get update -y
apt-get install -y curl apt-get install -y curl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl" curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
install -m 0755 kubectl /usr/local/bin/kubectl install -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client kubectl version --client
@@ -112,12 +112,15 @@ jobs:
- name: Test connection to cluster - name: Test connection to cluster
run: | run: |
cd haven-notify/deploy
kubectl --kubeconfig=kubeconfig.yaml cluster-info kubectl --kubeconfig=kubeconfig.yaml cluster-info
- name: Apply haven-notify deployment - name: Apply haven-notify deployment
run: | run: |
cd haven-notify/deploy
kubectl --kubeconfig=kubeconfig.yaml apply -f haven-notify.yaml kubectl --kubeconfig=kubeconfig.yaml apply -f haven-notify.yaml
- name: Rollout restart haven-notify - name: Rollout restart haven-notify
run: | run: |
cd haven-notify/deploy
kubectl --kubeconfig=kubeconfig.yaml rollout restart deployment/haven-notify kubectl --kubeconfig=kubeconfig.yaml rollout restart deployment/haven-notify