Create docker-image.yml

This commit is contained in:
lizhognhua 2024-11-20 20:54:24 +08:00 committed by GitHub
parent d7d3fed833
commit facea48ee1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

@ -0,0 +1,18 @@
name: Docker Image CI
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)