Skip to content

refactor: 更新 README 和介绍文档,调整布局并添加项目 logo #13

refactor: 更新 README 和介绍文档,调整布局并添加项目 logo

refactor: 更新 README 和介绍文档,调整布局并添加项目 logo #13

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
tags:
- 'v*'
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build-and-push:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
e1saps/onebot-github-webhook:latest
${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && format('e1saps/onebot-github-webhook:{0}', github.ref_name) || format('e1saps/onebot-github-webhook:{0}', github.sha) }}