Update dependency prettier to v3.5.0 #147
Workflow file for this run
This file contains hidden or 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 Website | |
| on: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - | |
| name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - | |
| name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - | |
| name: Log in to the ghcr.io Container registry | |
| uses: docker/login-action@7ca345011ac4304463197fac0e56eab1bc7e6af0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - | |
| name: Build and Push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| tags: | | |
| ghcr.io/acend/website:pr-${{ github.event.pull_request.number }} | |
| - | |
| name: 'Install Helm' | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: v3.6.2 | |
| - | |
| name: Install Kubectl | |
| uses: azure/setup-kubectl@v4 | |
| with: | |
| version: v1.21.2 | |
| - | |
| name: Create KUBECONFIG | |
| env: | |
| KUBE_CONFIG: '${{ secrets.KUBECONFIG_K8S_ACEND_TEST }}' | |
| run: | | |
| mkdir -p $HOME/.kube | |
| echo "$KUBE_CONFIG" > $HOME/.kube/config | |
| - | |
| name: Deploy Helm Release | |
| env: | |
| WEBSITE_HELM_RELEASE: 'pr-${{ github.event.pull_request.number }}' | |
| WEBSITE_NAMESPACE: 'acend-websitenew-test' | |
| WEBSITE_VERSION: '${{ github.sha }}' | |
| run: | | |
| helm upgrade --install --wait --kubeconfig $HOME/.kube/config --namespace=$WEBSITE_NAMESPACE --set=app.name=$WEBSITE_HELM_RELEASE --set=app.version=$WEBSITE_VERSION --values=helm-chart/values.yaml --atomic $WEBSITE_HELM_RELEASE ./helm-chart | |
| - | |
| name: Redeploy Deployments | |
| env: | |
| WEBSITE_HELM_RELEASE: 'pr-${{ github.event.pull_request.number }}' | |
| WEBSITE_NAMESPACE: 'acend-websitenew-test' | |
| run: | | |
| kubectl rollout restart deployment/${WEBSITE_HELM_RELEASE}-acend-website --kubeconfig $HOME/.kube/config --namespace $WEBSITE_NAMESPACE | |
| - | |
| name: Comment PR Environments in PR | |
| uses: marocchino/sticky-pull-request-comment@v2 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| message: | | |
| PR Environments: | |
| * acend website <https://websitenew-pr-${{ github.event.pull_request.number }}.test.acend.ch> | |