fix: 文章的更新时间错误;壁纸地址失效 #52
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: [main] | |
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: | |
registry: registry.wsvaio.site | |
username: admin | |
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: | | |
registry.wsvaio.site/wsvaio/blog:latest | |
registry.wsvaio.site/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 |