✨ feat: add Xyzen FAQ #22
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 and Push Docker Image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to registry.sciol.ac.cn | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: registry.sciol.ac.cn | |
| username: ${{ secrets.SCIENCEOL_REGISTRY_USERNAME }} | |
| password: ${{ secrets.SCIENCEOL_REGISTRY_PASSWORD }} | |
| - name: Build and push Docker image | |
| run: | | |
| docker build . -t registry.sciol.ac.cn/sciol/docs:latest --push | |
| - name: Download Let's Encrypt CA | |
| run: curl -o ca.crt https://letsencrypt.org/certs/isrgrootx1.pem | |
| - name: Rolling update deployment | |
| run: | | |
| kubectl \ | |
| --server=${{ secrets.SCIENCEOL_K8S_SERVER_URL }} \ | |
| --token=${{ secrets.SCIENCEOL_K8S_ADMIN_TOKEN }} \ | |
| --certificate-authority=ca.crt \ | |
| rollout restart deployment sciol-docs -n sciol |