build: bump angular 18.2.7 to 18.2.10 #553
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish | |
on: | |
push: | |
branches: [master] | |
paths: | |
- "src/**" | |
- "package.json" | |
- "yarn.lock" | |
jobs: | |
build-and-push-docker-image: | |
name: Build Docker image and push to repositories | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Github Packages | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GHCR_PAT }} | |
- name: Build image and push to GitHub Container Registry | |
uses: docker/build-push-action@v5 | |
id: docker_build | |
with: | |
context: . | |
tags: | | |
ghcr.io/damingerdai/hoteler-web:${{ github.sha }} | |
push: ${{ github.ref == 'refs/heads/master' }} | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} | |
deploy-to-kubernetes: | |
needs: build-and-push-docker-image | |
name: Deploy To kubernetes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Authenticate to k3s | |
uses: Azure/k8s-set-context@v3 | |
with: | |
kubeconfig: ${{ secrets.KUBE_CONFIG }} | |
- name: Deploy to k3s | |
run: |- | |
kubectl set image deployment/hoteler-web hoteler-web=ghcr.io/damingerdai/hoteler-web:${{ github.sha }} -n hoteler-namespace | |
kubectl rollout status deployment/hoteler-web -n hoteler-namespace |