Commit 75fa66e 1 parent edd9429 commit 75fa66e Copy full SHA for 75fa66e
File tree 6 files changed +52
-7
lines changed
6 files changed +52
-7
lines changed Original file line number Diff line number Diff line change 1
1
[bumpversion]
2
- current_version = 1.6.9
2
+ current_version = 1.6.10
3
3
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*))?
4
4
serialize =
5
5
{major}.{minor}.{patch}-{release}
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ jobs:
168
168
169
169
- name : Build package
170
170
run : |
171
- mkdir dist
171
+ mkdir -p dist
172
172
docker run \
173
173
-v $(pwd)/dist:/app/dist \
174
174
docker.pkg.github.com/$GITHUB_REPOSITORY/dtcli-env:${GITHUB_SHA:0:6} \
@@ -194,7 +194,7 @@ jobs:
194
194
195
195
- name : Build binary distribution
196
196
run : |
197
- mkdir dist
197
+ mkdir -p dist
198
198
docker run \
199
199
-v $(pwd)/dist:/app/dist \
200
200
docker.pkg.github.com/$GITHUB_REPOSITORY/dtcli-env:${GITHUB_SHA:0:6} \
@@ -209,6 +209,23 @@ jobs:
209
209
run : |
210
210
./dist/dt
211
211
212
+ - name : Make the binary static
213
+ run : |
214
+ docker run \
215
+ -v $(pwd)/dist:/app/dist \
216
+ docker.pkg.github.com/$GITHUB_REPOSITORY/dtcli-env:${GITHUB_SHA:0:6} \
217
+ poetry run staticx --strip dist/dt dist/dt-static
218
+
219
+ docker run \
220
+ -v $(pwd)/dist:/app/dist \
221
+ docker.pkg.github.com/$GITHUB_REPOSITORY/dtcli-env:${GITHUB_SHA:0:6} \
222
+ chown $(id -u):$(id -g) dist/dt-static
223
+
224
+ - name : Sanity
225
+ run : |
226
+ ./dist/dt-static
227
+ mv dist/dt-static dist/dt
228
+
212
229
- name : Cache built linux binary artifact
213
230
uses : actions/upload-artifact@v2
214
231
with :
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM python:3.9-slim
2
2
3
3
# Install package build system
4
4
RUN pip install poetry
5
- RUN apt-get update && apt-get install -y binutils
5
+ RUN apt-get update && apt-get install -y binutils patchelf
6
6
7
7
# Project directory must be mounted in /app
8
8
WORKDIR /app
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- __version__ = "1.6.9 "
15
+ __version__ = "1.6.10 "
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ packages = [
12
12
]
13
13
readme = " README.md"
14
14
repository = " https://github.com/dynatrace-oss/dt-cli"
15
- version = " 1.6.9 "
15
+ version = " 1.6.10 "
16
16
17
17
18
18
[tool .poetry .dependencies ]
@@ -49,6 +49,7 @@ pytest-mock = "^3.5"
49
49
pytest-mypy = " ^0.8"
50
50
radon = " ^4.0"
51
51
sphinxcontrib-programoutput = " ^0.17"
52
+ staticx = " ^0.13.8"
52
53
53
54
[build-system ]
54
55
build-backend = " poetry.core.masonry.api"
You can’t perform that action at this time.
0 commit comments