|
|
@@ -143,6 +143,34 @@ jobs:
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache-new
|
|
|
|
|
|
+ - name: Build Xray-core and push
|
|
|
+ id: docker_build_xray_core
|
|
|
+ uses: docker/build-push-action@v2
|
|
|
+ with:
|
|
|
+ context: ./xray
|
|
|
+ file: ./xray/Dockerfile.xray
|
|
|
+ push: true
|
|
|
+ tags: |
|
|
|
+ ${{ secrets.DOCKER_HUB_USERNAME }}/xray:latest
|
|
|
+ ${{ secrets.DOCKER_HUB_USERNAME }}/xray:1.4.2
|
|
|
+ builder: ${{ steps.buildx.outputs.name }}
|
|
|
+ cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
+ cache-to: type=local,dest=/tmp/.buildx-cache-new
|
|
|
+
|
|
|
+ - name: Build V2ray-core and push
|
|
|
+ id: docker_build_v2ray_core
|
|
|
+ uses: docker/build-push-action@v2
|
|
|
+ with:
|
|
|
+ context: ./v2ray
|
|
|
+ file: ./v2ray/Dockerfile.fly
|
|
|
+ push: true
|
|
|
+ tags: |
|
|
|
+ ${{ secrets.DOCKER_HUB_USERNAME }}/v2ray:latest
|
|
|
+ ${{ secrets.DOCKER_HUB_USERNAME }}/v2ray:4.40.1
|
|
|
+ builder: ${{ steps.buildx.outputs.name }}
|
|
|
+ cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
+ cache-to: type=local,dest=/tmp/.buildx-cache-new
|
|
|
+
|
|
|
- name: Move cache
|
|
|
run: |
|
|
|
rm -rf /tmp/.buildx-cache
|
|
|
@@ -151,4 +179,6 @@ jobs:
|
|
|
- name: Image digest
|
|
|
run: |
|
|
|
echo ${{ steps.docker_build_chinadns_ng.outputs.digest }}
|
|
|
- echo ${{ steps.docker_build_dnscrypt_proxy.outputs.digest }}
|
|
|
+ echo ${{ steps.docker_build_dnscrypt_proxy.outputs.digest }}
|
|
|
+ echo ${{ steps.docker_build_xray_core.outputs.digest }}
|
|
|
+ echo ${{ steps.docker_build_v2ray_core.outputs.digest }}
|