Skip to content

first commit

first commit #1

Workflow file for this run

name: Docker Build and Push
on:
push:
branches: [ "main" ] # 当推送到main分支时触发
pull_request:
branches: [ "main" ] # 当创建针对main分支的PR时触发
# 允许手动触发工作流
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: pig4cloud
password: a123.+-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/office2md:latest