This commit is contained in:
parent
a3d72e6a0c
commit
b794b87f4d
15
.drone.yml
Normal file
15
.drone.yml
Normal file
@ -0,0 +1,15 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build images
|
||||
steps:
|
||||
- name: java-defold-bob
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: git.aterve.com/Partydeck/java-defold-bob
|
||||
registry: git.aterve.com
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags: latest
|
||||
dockerfile: ./java-defold-bob/Dockerfile
|
28
java-defold-bob/Dockerfile
Normal file
28
java-defold-bob/Dockerfile
Normal file
@ -0,0 +1,28 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
LABEL maintainer = "Aterve"
|
||||
ENV TIME_ZONE=Amsterdam/Europe
|
||||
|
||||
WORKDIR /defold
|
||||
|
||||
# Get OS Architecture & Platform
|
||||
RUN os_arch=$(uname -m | awk '{print tolower($0)}')
|
||||
RUN os_platform=$(uname -s | awk '{print tolower($0)}')
|
||||
|
||||
# Update APT registry
|
||||
RUN apt-get update -y
|
||||
|
||||
# Install build tools
|
||||
RUN apt-get install -y jq curl unzip
|
||||
|
||||
# Install Java Development Kit
|
||||
RUN apt-get install -y openjdk-18-jdk openjdk-18-jre
|
||||
RUN java --version
|
||||
|
||||
# Get latest stable Defold version and SHA1
|
||||
RUN stable_info=$(curl http://d.defold.com/stable/info.json -s)
|
||||
RUN version=$(echo $stable_info | jq -r '.version')
|
||||
RUN hash=$(echo $stable_info | jq -r '.sha1')
|
||||
|
||||
# Download bob.jar
|
||||
RUN curl -L -o bob.jar https://github.com/defold/defold/releases/download/$version/bob.jar -s
|
Loading…
x
Reference in New Issue
Block a user