chore: 修改版本,尝试 ci 构建镜像

This commit is contained in:
amtoaer
2023-11-25 14:10:43 +08:00
parent c5fc924b0a
commit 0af1d308af
2 changed files with 33 additions and 1 deletions

32
.github/workflows/docker-image.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Docker Image CI
on:
push:
tags:
- '*'
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to DockerHub
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: .
file: ./Dockerfile
push: true
tags:
amtoaer/bili-sync:${{ github.ref_name }}
amtoaer/bili-sync:latest