endofyear/.github/workflows/docker-publish.yml
zhouzhongping 27fb35daa6
项目:painting 主题
- 项目初始版本
 - 项目默认主题 painting
2023-10-30 15:58:06 +08:00

24 lines
547 B
YAML

name: Publish Docker image
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push Docker image
run: |
docker build -t sevenwate/endofyear:latest .
docker push sevenwate/endofyear:latest