🐛 fix: simplify imports and standardize href formatting in Navbar com… #48
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 Service Docker image | |
| run: | | |
| docker build service -t registry.sciol.ac.cn/sciol/studio-service:latest --push -f service/build/Dockerfile.ci | |
| - name: Build and push Web Docker image | |
| run: | | |
| docker build web -t registry.sciol.ac.cn/sciol/studio-web: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 studio -n sciol | |
| kubectl \ | |
| --server=${{ secrets.SCIENCEOL_K8S_SERVER_URL }} \ | |
| --token=${{ secrets.SCIENCEOL_K8S_ADMIN_TOKEN }} \ | |
| --certificate-authority=ca.crt \ | |
| rollout restart deployment studio-schedule -n sciol | |
| kubectl \ | |
| --server=${{ secrets.SCIENCEOL_K8S_SERVER_URL }} \ | |
| --token=${{ secrets.SCIENCEOL_K8S_ADMIN_TOKEN }} \ | |
| --certificate-authority=ca.crt \ | |
| rollout restart deployment studio-web -n sciol | |