From 82d4556aa6460b7205db13e528cc50a361991745 Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 14 Nov 2024 18:49:54 +0800 Subject: [PATCH 1/5] Add docker build apk --- dialer/compose.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dialer/compose.yaml diff --git a/dialer/compose.yaml b/dialer/compose.yaml new file mode 100644 index 0000000..7ebdca4 --- /dev/null +++ b/dialer/compose.yaml @@ -0,0 +1,9 @@ +--- +services: + build: + image: git.gmoker.com/icing/flutter:v0.2.0 + volumes: + - ".:/app/" + command: + - build + - apk -- 2.45.2 From 09c51168451c7c932160ee98dd0fcde72081693a Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 18 Dec 2024 03:46:27 +0000 Subject: [PATCH 2/5] feat: build + run scripts --- dialer/build.sh | 5 +++++ dialer/compose.yaml | 9 --------- dialer/run.sh | 5 +++++ 3 files changed, 10 insertions(+), 9 deletions(-) create mode 100755 dialer/build.sh delete mode 100644 dialer/compose.yaml create mode 100755 dialer/run.sh diff --git a/dialer/build.sh b/dialer/build.sh new file mode 100755 index 0000000..6416762 --- /dev/null +++ b/dialer/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e + +IMG=git.gmoker.com/icing/flutter:main + +docker run --rm -v "$PWD:/app/" "$IMG" build apk diff --git a/dialer/compose.yaml b/dialer/compose.yaml deleted file mode 100644 index 7ebdca4..0000000 --- a/dialer/compose.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -services: - build: - image: git.gmoker.com/icing/flutter:v0.2.0 - volumes: - - ".:/app/" - command: - - build - - apk diff --git a/dialer/run.sh b/dialer/run.sh new file mode 100755 index 0000000..3a8ccb7 --- /dev/null +++ b/dialer/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e + +IMG=git.gmoker.com/icing/flutter:main + +docker run --rm -p 5037:5037 -v "$PWD:/app/" "$IMG" run -- 2.45.2 From 1d6f9218776443f53e689c8919cc77ad50eb64bf Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 29 Nov 2024 04:13:50 +0000 Subject: [PATCH 3/5] feat: cicd to build apk --- .gitea/workflows/apk.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitea/workflows/apk.yaml diff --git a/.gitea/workflows/apk.yaml b/.gitea/workflows/apk.yaml new file mode 100644 index 0000000..5085cf8 --- /dev/null +++ b/.gitea/workflows/apk.yaml @@ -0,0 +1,17 @@ +on: + push: + branches: + - dev + tags: + - '*' + +jobs: + build: + runs-on: debian + defaults: + run: + working-directory: dialer + steps: + - uses: actions/checkout@v1 + - run: | + ./build.sh # actually doesn't work bc no docker in debian -- 2.45.2 From 41e5cad2dd94d02fbeb56132bc9dd46c1d32c247 Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 29 Nov 2024 04:15:43 +0000 Subject: [PATCH 4/5] feat: autobuild only if dialer/** if modified --- .gitea/workflows/apk.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/apk.yaml b/.gitea/workflows/apk.yaml index 5085cf8..b5a6a26 100644 --- a/.gitea/workflows/apk.yaml +++ b/.gitea/workflows/apk.yaml @@ -1,9 +1,7 @@ on: push: - branches: - - dev - tags: - - '*' + paths: + - dialer/** jobs: build: -- 2.45.2 From 5c93cc035fdfc614a373e84c66b7b04c0578d4aa Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 2 Jan 2025 02:42:37 +0000 Subject: [PATCH 5/5] feat: action build apk --- .gitea/workflows/apk.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/apk.yaml b/.gitea/workflows/apk.yaml index b5a6a26..6c6434a 100644 --- a/.gitea/workflows/apk.yaml +++ b/.gitea/workflows/apk.yaml @@ -1,15 +1,15 @@ on: push: - paths: - - dialer/** + #paths: + # - dialer/** jobs: build: runs-on: debian + container: git.gmoker.com/icing/flutter:main defaults: run: working-directory: dialer steps: - uses: actions/checkout@v1 - - run: | - ./build.sh # actually doesn't work bc no docker in debian + - run: flutter build apk -- 2.45.2