Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
ci: 添加docker工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed May 28, 2024
1 parent f1c1e92 commit fd15635
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-docsify-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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

0 comments on commit fd15635

Please sign in to comment.