Create docker-image.yml

docker-image.yml
This commit is contained in:
小张 2024-09-26 07:33:18 +08:00 committed by GitHub
parent 7f2498cc65
commit 66d05a3fc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

@ -0,0 +1,23 @@
name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
tags: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest
push: true