Skip to content

Align local Node version with Docker (#735) #73

Align local Node version with Docker (#735)

Align local Node version with Docker (#735) #73

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-24.04
permissions:
contents: read
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: docker/setup-buildx-action@v4
- uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v7
with:
push: true
tags: |
tarteel/quranic-universal-library:${{ github.sha }}
tarteel/quranic-universal-library:latest
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
needs: build
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions: {}
steps:
- name: Rollout
env:
KUBECONFIG_B64: ${{ secrets.KUBECONFIG_DEPLOY_QUL }}
SHA: ${{ github.sha }}
run: |
mkdir -p $HOME/.kube
echo "$KUBECONFIG_B64" | base64 -d > $HOME/.kube/config
chmod 600 $HOME/.kube/config
IMAGE="tarteel/quranic-universal-library:$SHA"
kubectl set image deployment/quranic-universal-library \
quranic-universal-library="$IMAGE" \
-n tarteel-deployments
kubectl rollout status deployment/quranic-universal-library \
-n tarteel-deployments --timeout=5m