Browse Source

Create docker-image.yml

蘭雅sRGB 3 years ago
parent
commit
72ec476ea2
1 changed files with 19 additions and 0 deletions
  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