Forráskód Böngészése

[docker] Add CI to build and archive docker image

Cameron Cross 6 hónapja
szülő
commit
437e513485
1 módosított fájl, 13 hozzáadás és 0 törlés
  1. 13 0
      .github/workflows/build.yml

+ 13 - 0
.github/workflows/build.yml

@@ -308,3 +308,16 @@ jobs:
       with:
         name: idevicerestore-latest_${{ matrix.arch }}-${{ env.dest }}
         path: idevicerestore.tar
+  build-docker:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - name: build
+        run: |
+          pushd docker && ./build.sh; popd
+          docker image save -o idevicerestore-docker.tar idevicerestore-docker
+      - name: publish artifact
+        uses: actions/upload-artifact@v4
+        with:
+          name: idevicerestore-latest_docker
+          path: idevicerestore-docker.tar