1
0
ngbs 4 жил өмнө
parent
commit
a4155cb7a7

+ 48 - 0
.github/workflows/build-dnscrypt-proxy.yml

@@ -0,0 +1,48 @@
+name: Build DNSCrypt-Proxy
+
+on:
+  # push:
+  #   branches: [ master ]
+  # pull_request:
+  #   branches: [ master ]
+
+  workflow_dispatch:
+
+jobs:
+  build-dnscrypt-proxy:
+    needs: build-basic
+    runs-on: ubuntu-latest
+    steps:
+      - name: Set Variables
+        run: |
+          echo "DNSCRYPT_PROXY_VERSION=$(curl -fsSL https://api.github.com/repos/dnscrypt/dnscrypt-proxy/releases/latest | grep '"tag_name":' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')" >> $GITHUB_ENV
+        shell: bash
+
+      - name: Check Out Repo
+        uses: actions/checkout@v2
+
+      - name: Set up Docker Buildx
+        id: buildx
+        uses: docker/setup-buildx-action@v1
+
+      - name: Login to Docker Hub
+        uses: docker/login-action@v1
+        with:
+          username: ${{ secrets.DOCKER_HUB_USERNAME }}
+          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
+
+      - name: Build DNSCrypt-Proxy and push
+        id: docker_build_dnscrypt_proxy
+        uses: docker/build-push-action@v2
+        with:
+          context: ./dnscrypt-proxy
+          file: ./dnscrypt-proxy/Dockerfile
+          push: true
+          tags: |
+            ${{ secrets.DOCKER_HUB_USERNAME }}/dnscrypt-proxy:latest
+            ${{ secrets.DOCKER_HUB_USERNAME }}/dnscrypt-proxy:${{ env.DNSCRYPT_PROXY_VERSION }}
+          builder: ${{ steps.buildx.outputs.name }}
+
+      - name: Image digest
+        run: |
+          echo ${{ steps.docker_build_dnscrypt_proxy.outputs.digest }}

+ 48 - 0
.github/workflows/build-naiveproxy.yml

@@ -0,0 +1,48 @@
+name: Build NaïveProxy
+
+on:
+  # push:
+  #   branches: [ master ]
+  # pull_request:
+  #   branches: [ master ]
+
+  workflow_dispatch:
+
+jobs:
+  build-naiveproxy:
+    needs: build-basic
+    runs-on: ubuntu-latest
+    steps:
+      - name: Set Variables
+        run: |
+          echo "NAIVE_VERSION=$(curl -fsSL https://api.github.com/repos/klzgrad/naiveproxy/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
+        shell: bash
+
+      - name: Check Out Repo
+        uses: actions/checkout@v2
+
+      - name: Set up Docker Buildx
+        id: buildx
+        uses: docker/setup-buildx-action@v1
+
+      - name: Login to Docker Hub
+        uses: docker/login-action@v1
+        with:
+          username: ${{ secrets.DOCKER_HUB_USERNAME }}
+          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
+
+      - name: Build naiveproxy and push
+        id: docker_build_naiveproxy
+        uses: docker/build-push-action@v2
+        with:
+          context: ./naive
+          file: ./naive/Dockerfile
+          push: true
+          tags: |
+            ${{ secrets.DOCKER_HUB_USERNAME }}/naive:latest
+            ${{ secrets.DOCKER_HUB_USERNAME }}/naive:${{ env.NAIVE_VERSION }}
+          builder: ${{ steps.buildx.outputs.name }}
+
+      - name: Image digest
+        run: |
+          echo ${{ steps.docker_build_naiveproxy.outputs.digest }}

+ 48 - 0
.github/workflows/build-syncthing.yml

@@ -0,0 +1,48 @@
+name: Build Syncthing
+
+on:
+  # push:
+  #   branches: [ master ]
+  # pull_request:
+  #   branches: [ master ]
+
+  workflow_dispatch:
+
+jobs:
+  build-syncthing:
+    needs: build-basic
+    runs-on: ubuntu-latest
+    steps:
+      - name: Set Variables
+        run: |
+          echo "SYNCTHING_VERSION=$(curl -fsSL https://api.github.com/repos/syncthing/syncthing/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
+        shell: bash
+
+      - name: Check Out Repo
+        uses: actions/checkout@v2
+
+      - name: Set up Docker Buildx
+        id: buildx
+        uses: docker/setup-buildx-action@v1
+
+      - name: Login to Docker Hub
+        uses: docker/login-action@v1
+        with:
+          username: ${{ secrets.DOCKER_HUB_USERNAME }}
+          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
+
+      - name: Build Syncthing and push
+        id: docker_build_syncthing
+        uses: docker/build-push-action@v2
+        with:
+          context: ./syncthing
+          file: ./syncthing/Dockerfile
+          push: true
+          tags: |
+            ${{ secrets.DOCKER_HUB_USERNAME }}/syncthing:latest
+            ${{ secrets.DOCKER_HUB_USERNAME }}/syncthing:${{ env.SYNCTHING_VERSION }}
+          builder: ${{ steps.buildx.outputs.name }}
+
+      - name: Image digest
+        run: |
+          echo ${{ steps.docker_build_syncthing.outputs.digest }}