浏览代码

Create docker-image.yml

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

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

@@ -0,0 +1,19 @@
+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 buildx . --file Dockerfile --tag hongwenjun/nginx-php:$(date +%s) \
+              --platform=linux/arm,linux/arm64,linux/amd64  --push