sunguroku 5 лет назад
Родитель
Сommit
224f7e519e
1 измененных файлов с 10 добавлено и 8 удалено
  1. 10 8
      .github/workflows/gcr.yaml

+ 10 - 8
.github/workflows/gcr.yaml

@@ -1,8 +1,7 @@
 name: Build, Push to GCR.
 on:
   push:
-    branches:
-      - staging
+    branches: staging
 jobs:
   login-build-push:
     runs-on: ubuntu-latest
@@ -33,9 +32,12 @@ jobs:
       uses: docker/setup-qemu-action@v1
     - name: Set up Docker Buildx
       uses: docker/setup-buildx-action@v1
-    - name: Build
-      run: |
-        DOCKER_BUILDKIT=1 docker build . -t gcr.io/porter-dev-273614/porter-prov:latest -f ./docker/dev.Dockerfile
-    - name: Push
-      run: |
-        docker push gcr.io/porter-dev-273614/porter-prov:latest
+    - name: Build and push
+      uses: docker/build-push-action@v2
+      with:
+        context: .
+        file: ./docker/dev.Dockerfile
+        platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
+        push: true
+        tags: |
+          gcr.io/porter-dev-273614/porter-prov:latest