fix: 文章页目录不显示 #35
Workflow file for this run
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 Push Docker Image | |
on: | |
push: | |
branches: ["prod"] | |
jobs: | |
build-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: wsvaio | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
build-args: | |
DATABASE_URL=${{ secrets.DATABASE_URL }} | |
push: true | |
tags: | | |
wsvaio/blog:latest | |
wsvaio/blog:${{ github.sha }} | |
deploy: | |
needs: build-image | |
name: deploy to cluster | |
runs-on: ubuntu-latest | |
steps: | |
- uses: steebchen/[email protected] | |
with: | |
config: ${{ secrets.KUBE_CONFIG_DATA }} | |
version: v1.29.2 | |
command: rollout restart deployment/blog -n blog |