浏览代码

Create docker-image.yml

蘭雅sRGB 3 年之前
父节点
当前提交
b7c626fe6d
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      .github/workflows/docker-image.yml

+ 18 - 0
.github/workflows/docker-image.yml

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