Skip to content

Docker Container that installs and runs the Tizen cli tools. Intended for use in Github Actions

License

Notifications You must be signed in to change notification settings

grubbrr/docker-tizen-ci-cd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-tizen-ci-cd

Github action that installs and runs the Tizen cli tools in a docker container for Samsung TV app development.

Usage

jobs:
  pack-tizen:
    name: Tizen Kiosk Package
    runs-on: ubuntu-latest
    steps:
        - name: Create Package
        uses: grubbrr/docker-tizen-ci-cd@v2.1.5
        with:
            command: web
            app-directory: tizen
            cert-pw: ${{ secrets.tizen_cert_pw }}
            dist-cert: fromWorkspaceRoot/dist_cert_path.p12
            dist-cert-pw: ${{ secrets.tizen_dist_cert_pw }}
            zip: true
            version: 1.0.1
        - name: Release
        uses: softprops/action-gh-release@v1
        with:
          prerelease: true
          files: |
            ${{ steps.create_package.outputs.file }}
            ${{ steps.create_package.outputs.zip }}

Inputs

command

Required The type of application to build and package for tizen. (web|native)

app-directory

Required the location of the tizen app folder inside the github repo. Default "tizen".

cert-pw

Required a password to use for the certificate that the package will be signed with. Use Github secrets.

dist-cert

Required the location of a distribution certificate to use with the generated certificate.

only required because the current cert shipped with tizen no longer works

dist-cert-pw

Required the password for the distribution certificate.

only required because the current cert shipped with tizen no longer works, otherwise only required if dist-cert is set

cert-name

The name of the cert that will be used for signing the app. Default "devcert".

zip

Zip final package for deployment. Default "false" (true|false).

type

When generating a zip file, the pkginfo.xml type field. Default "Kiosk".

exclusions

Files to be excluded from a package. Default ".build/* .build .sign/* .sign webUnitTest/* webUnitTest .externalToolBuilders/* .externalToolBuilders .buildResult/* .buildResult .settings/* .settings .package/* .package .tproject .project .sdk_delta.info .rds_delta *.wgt .tizen-ui-builder-tool.xml *.zip"

version

The version that the package will be.

Outputs

file

The file and location generated by the packager, currently the wgt

zip

The zip file generated by the

Development

It is encouraged if building on windows you limit the memory that WSL can consume. In powershell run the following:

wsl --shutdown
notepad "$env:USERPROFILE/.wslconfig"

Ensure this file has the folowing lines or something similar:

[wsl2]
memory=3GB   # Limits VM memory in WSL 2 up to 3GB
processors=4 # Makes the WSL 2 VM use two virtual processors

Docker image

For local dev updating of the entrypoint.sh file in the docker image:

docker image build -t docker-tizen-ci-cd . # --no-cache # when changing builder layers

docker run -v "C:\projects\kiosk-v2":"/tizen" -e GITHUB_WORKSPACE="/tizen" --rm docker-tizen-ci-cd web tizen password "somePath/dist-cert.p12" "distPassword" cert "*.zip" true Kiosk 1.0.0
docker build -t docker-tizen-ci-cd -t docker-tizen-ci-cd:latest -t vipero07/docker-tizen-ci-cd:latest -t vipero07/docker-tizen-ci-cd:v2.1.5 -t ghcr.io/grubbrr/docker-tizen-ci-cd:latest -t ghcr.io/grubbrr/docker-tizen-ci-cd:v2.1.5 -t ghcr.io/vipero07/docker-tizen-ci-cd:latest -t ghcr.io/vipero07/docker-tizen-ci-cd:v2.1.5 .; docker push vipero07/docker-tizen-ci-cd:latest; docker push ghcr.io/grubbrr/docker-tizen-ci-cd:latest; docker push ghcr.io/vipero07/docker-tizen-ci-cd:latest; docker push vipero07/docker-tizen-ci-cd:v2.1.5; docker push ghcr.io/grubbrr/docker-tizen-ci-cd:v2.1.5; docker push ghcr.io/vipero07/docker-tizen-ci-cd:v2.1.5;

Reference

dockerhub image vipero07/docker-tizen-ci-cd

ghcr image ghcr.io/grubbrr/docker-tizen-ci-cd

Docker-tizen-studio-ide

Tizen official sdk repository

About

Docker Container that installs and runs the Tizen cli tools. Intended for use in Github Actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published