@@ -13,38 +13,23 @@ jobs:
13
13
setup-env :
14
14
runs-on : ubuntu-22.04
15
15
outputs :
16
- ci_image : ${{ steps.set-ci-image.outputs.ci_image }}
16
+ ci_image_version : ${{ steps.set-ci-image-version .outputs.ci_image_version }}
17
17
steps :
18
18
- name : Clone the repo
19
19
uses : actions/checkout@v4
20
20
21
21
- name : Read CI Image Version
22
- id : set-ci-image
22
+ id : set-ci-image-version
23
23
run : |
24
- # Use alternative image when running on GitHub workflows CI to avoid potential
25
- # rate limiting when executing jobs in parallel: they can't cache docker images
26
- # and always pull.
27
- #
28
- # To update this image, generate a personal token with write:packages scope
29
- # on https://github.com/settings/tokens and authenticate yourself locally with
30
- # "docker login ghcr.io -u <github-username>" using the
31
- # newly generated token as password.
32
- # Once logged in, tag an new image:
33
- # docker tag shiftcrypto/bitbox-wallet-app:VERSION \
34
- # ghcr.io/bitboxswiss/bitbox-wallet-app-ci:VERSION
35
- # and push as usual:
36
- # docker push ghcr.io/bitboxswiss/bitbox-wallet-app-ci:VERSION
37
- # Lastly, update the next line to use the newly pushed image version.
38
- # See docs for more details:
39
- # https://docs.github.com/en/packages/guides/pushing-and-pulling-docker-images
40
- #
41
24
# Keep this in sync with default in scripts/github-ci.sh.
42
25
CI_IMAGE_VERSION=$(cat .containerversion)
43
- echo "ci_image=ghcr.io/bitboxswiss/bitbox-wallet-app-ci: $CI_IMAGE_VERSION" >> $GITHUB_OUTPUT
26
+ echo "ci_image_version= $CI_IMAGE_VERSION" >> $GITHUB_OUTPUT
44
27
45
28
test-lint :
46
29
runs-on : ubuntu-22.04
47
30
needs : setup-env
31
+ container :
32
+ image : shiftcrypto/bitbox-wallet-app:${{ needs.setup-env.outputs.ci_image_version }}
48
33
steps :
49
34
- name : Clone the repo
50
35
with :
@@ -56,13 +41,14 @@ jobs:
56
41
run : ./scripts/github-ci.sh ci
57
42
env :
58
43
OS_NAME : linux
59
- CI_IMAGE : ${{ needs.setup-env.outputs.ci_image }}
60
44
61
45
android :
62
46
runs-on : ubuntu-22.04
63
47
needs : setup-env
64
48
outputs :
65
49
artifact-url : ${{ steps.upload.outputs.artifact-url }}
50
+ container :
51
+ image : shiftcrypto/bitbox-wallet-app:${{ needs.setup-env.outputs.ci_image_version }}
66
52
steps :
67
53
- name : Clone the repo
68
54
uses : actions/checkout@v4
@@ -77,17 +63,18 @@ jobs:
77
63
run : ./scripts/github-ci.sh android
78
64
env :
79
65
OS_NAME : linux
80
- CI_IMAGE : ${{ needs.setup-env.outputs.ci_image }}
81
66
- name : Upload APK
82
67
id : upload
83
68
uses : actions/upload-artifact@v4
84
69
with :
85
- path : frontends/android/BitBoxApp/app/build/outputs/apk/debug/app-debug.apk
70
+ path : /github/home/go/src/github.com/BitBoxSwiss/bitbox-wallet-app/ frontends/android/BitBoxApp/app/build/outputs/apk/debug/app-debug.apk
86
71
name : BitBoxApp-android-${{github.sha}}.apk
87
72
if-no-files-found : error
88
73
qt-linux :
89
74
runs-on : ubuntu-22.04
90
75
needs : setup-env
76
+ container :
77
+ image : shiftcrypto/bitbox-wallet-app:${{ needs.setup-env.outputs.ci_image_version }}
91
78
outputs :
92
79
artifact-url-ai : ${{ steps.upload-ai.outputs.artifact-url }}
93
80
artifact-url-deb : ${{ steps.upload-deb.outputs.artifact-url }}
@@ -101,26 +88,25 @@ jobs:
101
88
run : ./scripts/github-ci.sh qt-linux
102
89
env :
103
90
OS_NAME : linux
104
- CI_IMAGE : ${{ needs.setup-env.outputs.ci_image }}
105
91
- name : Upload AppImage
106
92
id : upload-ai
107
93
uses : actions/upload-artifact@v4
108
94
with :
109
- path : frontends/qt/build/linux/BitBoxApp-*.AppImage
95
+ path : /github/home/go/src/github.com/BitBoxSwiss/bitbox-wallet-app/ frontends/qt/build/linux/BitBoxApp-*.AppImage
110
96
name : BitBoxApp-linux-${{github.sha}}.AppImage
111
97
if-no-files-found : error
112
98
- name : Upload deb
113
99
id : upload-deb
114
100
uses : actions/upload-artifact@v4
115
101
with :
116
- path : frontends/qt/build/linux/bitbox_*.deb
102
+ path : /github/home/go/src/github.com/BitBoxSwiss/bitbox-wallet-app/ frontends/qt/build/linux/bitbox_*.deb
117
103
name : BitBoxApp-linux-${{github.sha}}.deb
118
104
if-no-files-found : error
119
105
- name : Upload rpm
120
106
id : upload-rpm
121
107
uses : actions/upload-artifact@v4
122
108
with :
123
- path : frontends/qt/build/linux/bitbox-*.rpm
109
+ path : /github/home/go/src/github.com/BitBoxSwiss/bitbox-wallet-app/ frontends/qt/build/linux/bitbox-*.rpm
124
110
name : BitBoxApp-linux-${{github.sha}}.rpm
125
111
if-no-files-found : error
126
112
macos :
0 commit comments