Skip to content

Commit a26cf08

Browse files
authored
Merge pull request #28 from manhinhang/fix/docker-build
Update publish workflow to conditionally push Docker images and modify download script for secure connections
2 parents a12074d + 7528492 commit a26cf08

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Publish Docker image
22

33
on:
44
push:
5-
branches:
6-
- main
75
paths-ignore:
86
- README.md
97
- LICENSE
@@ -82,7 +80,7 @@ jobs:
8280
- name: build-push
8381
uses: docker/build-push-action@v5
8482
with:
85-
push: true
83+
push: ${{ github.ref == 'refs/heads/main' }}
8684
target: final-${{ matrix.BASE_IMG }}-target
8785
build-args: |
8886
"FUTU_OPEND_VER=${{ matrix.FUTU_OPEND_VER }}"

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 24.2.0

script/download_futu_opend.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
URL=https://softwaredownload.futunn.com/$1
44
echo "downloading '${URL}'"
5-
curl "${URL}" \
5+
curl -k "${URL}" \
66
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
77
-H 'accept-language: en-US,en;q=0.9' \
88
-H 'priority: u=0, i' \

0 commit comments

Comments
 (0)