This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
doc: 添加bot元数据的说明 #8
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 Docsify Image | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "docs/**" | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
working-directory: docs | |
jobs: | |
publish-docsify-docker-image: | |
runs-on: ubuntu-latest | |
name: Build and publish docker image | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build image | |
run: | | |
docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/campuxdocs:latest . | |
- name: Publish image | |
run: | | |
docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} | |
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/campuxdocs:latest |