root@0aa8f31dd1a2:/ta-cli_linux# ./ta-cli publish --apk=$(pwd)/demo.apk --api_token=<MY_API_TOKEN> --app_id=<MY_APP_ID>
Using config file: /root/.ta-cli.json
-------------- Releasing for Android only --------------
======> Preparing the release....
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x848ba3]
goroutine 1 [running]:
ta-cli/cmd.preRelease(0x7ffc9b7fe941, 0x24, 0x7ffc9b7fe96f, 0xa, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/ta-cli/cmd/publish.go:222 +0x103
ta-cli/cmd.doAndroid(0x7ffc9b7fe941, 0x24, 0x7ffc9b7fe96f, 0xa, 0x7ffc9b7fe91e, 0x16, 0x1, 0x0, 0x7986b3)
/go/src/ta-cli/cmd/publish.go:560 +0xf4
ta-cli/cmd.doPublish(0x0, 0x7)
/go/src/ta-cli/cmd/publish.go:509 +0x7bb
ta-cli/cmd.glob..func3(0xc3dde0, 0xc000095c20, 0x0, 0x3, 0x0, 0x0)
/go/src/ta-cli/cmd/publish.go:71 +0x45
github.com/spf13/cobra.(*Command).execute(0xc3dde0, 0xc000095bc0, 0x3, 0x3, 0xc3dde0, 0xc000095bc0)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc3e060, 0x0, 0xffffffff, 0xc000082058)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
ta-cli/cmd.Execute(...)
/go/src/ta-cli/cmd/root.go:61
main.main()
/go/src/ta-cli/main.go:6 +0x2e
FROM ubuntu
COPY . /root
RUN apt update && apt install bash curl unzip -y \
&& curl -Ls https://github.com/testappio/cli/releases/download/v1.0.1/ta-cli_linux.zip -o ta-cli.zip \
&& unzip ta-cli.zip
WORKDIR /ta-cli_linux
RUN curl -L https://www.apkmirror.com/apk/sample-developer/test-dpc/test-dpc-8-0-1-release/ -o demo.apk \
&& ./ta-cli publish --apk=$(pwd)/demo.apk --api_token=<API_TOKEN> --app_id=<APP_ID>
{
"api_token": "<api_token>",
"app_id": "<app_id>",
"release": "android",
"apk": "/",
"ipa": "",
"notify": "yes"
}