Docker image to build a project in Defold engine.
1.5K
Docker image for CI build of a Defold project and deploy on Itch.io using butler.
Built on top of openjdk:17-jdk-bullseye
it includes intalled in path:
To use butler you have to set the env variable BUTLER_API_KEY with your Itch.io api key (for the login).
It's recommended to save it as a secret.
Source on GitHub https://github.com/Secuter/Defold-CI
Example workflow to build and publish an HTML5 game
name: Build Defold game and push on Itch
on:
push:
branches: main
# Allows to run from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_FOLDER: "bundle/js-web/GAME-NAME"
ITCH_GAME_URL: "user/GAME-NAME"
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
UPDATE_GAME_USER: ${{ secrets.UPDATE_GAME_USER }}
UPDATE_GAME_PASSWORD: ${{ secrets.UPDATE_GAME_PASSWORD }}
container:
image: secuter/defold-build:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Defold
run: |
bob resolve distclean build bundle --archive --platform js-web --bundle-output bundle/js-web
- name: Deploy to itch.io
run: |
butler push "$BUILD_FOLDER" ${{ env.ITCH_GAME_URL }}:html5
Content type
Image
Digest
sha256:0c4406212…
Size
593.9 MB
Last updated
12 months ago
docker pull secuter/defold-ci