Skip to content

Add Updates from leads block to the subspaces page (l1 & l2). (#7417) #234

Add Updates from leads block to the subspaces page (l1 & l2). (#7417)

Add Updates from leads block to the subspaces page (l1 & l2). (#7417) #234

name: Build & Deploy to Dev on Hetzner
on:
push:
branches: [develop]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 'Checkout github Action'
uses: actions/[email protected]
- name: 'Build and push image'
uses: azure/docker-login@v2
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build -f Dockerfile . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-web:${{ github.sha }} -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-web:latest
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-web:${{ github.sha }}
- name: Install Kubectl
uses: azure/[email protected]
with:
version: 'v1.27.6' # Ensure this matches the version used in your cluster
- name: Set up Kubeconfig for Hetzner k3s
run: |
mkdir -p $HOME/.kube # Ensure the .kube directory exists
echo "${{ secrets.KUBECONFIG_SECRET_HETZNER_DEV }}" > $HOME/.kube/config
chmod 600 $HOME/.kube/config
- name: Create Image Pull Secret
run: |
kubectl create secret docker-registry alkemio-web-secret \
--docker-server=${{ secrets.REGISTRY_LOGIN_SERVER }} \
--docker-username=${{ secrets.REGISTRY_USERNAME }} \
--docker-password=${{ secrets.REGISTRY_PASSWORD }} \
--dry-run=client -o yaml | kubectl apply -f -
- uses: azure/[email protected]
with:
manifests: |
manifests/26-web-deployment-test.yaml
manifests/30-web-service.yaml
images: |
${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-web:${{ github.sha }}
imagepullsecrets: |
alkemio-web-secret