Skip to content

Commit

Permalink
auto commit and push by cuilan on 2024-11-28 10:31:56
Browse files Browse the repository at this point in the history
  • Loading branch information
cuilan committed Nov 28, 2024
1 parent c7698c7 commit 5cac9f7
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tomcat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: cuilan/tomcat

on:
#schedule:
#- cron: 0 1 * * 1
workflow_call:
workflow_dispatch:
inputs:
trigger:
description: Manually trigger
required: true
type: choice
options:
- build

jobs:
centos:
uses: ./.github/workflows/.earthly.yaml
secrets: inherit
with:
build-dir: tomcat
28 changes: 28 additions & 0 deletions tomcat/Earthfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
VERSION 0.8

DO ../udcs+BUILD_DATE

TOMCAT:
COMMAND
DO ../udcs+LABEL
DO ../udcs/os/debian+UPGRADE
DO ../udcs/os/debian+COMMON_PKG
DO ../udcs/os/debian+LOCALE
DO ../udcs/os/debian+TIMEZONE
DO ../udcs+TINI

ENTRYPOINT ["tini","--"]

CMD ["catalina.sh" "run"]

############################# runtime ##############################

build-tomcat9.0.97-jre17:
DO ../udcs/image+TOMCAT8_JRE17
DO +TOMCAT

ARG --required BUILD_DATE

SAVE IMAGE --push cuilan/tomcat:latest cuilan/tomcat:9-jre17 cuilan/tomcat:9.0.97-jre17 cuilan/tomcat:9.0.97-jre17-${BUILD_DATE}


6 changes: 6 additions & 0 deletions udcs/image/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ JRE17_OPENJ9:

# -------------------------------------

TOMCAT8_JRE17:
FUNCTION
FROM tomcat:9.0.97-jre17-temurin-noble

# -------------------------------------

NODE:
FUNCTION
FROM node:lts-buster
Expand Down

0 comments on commit 5cac9f7

Please sign in to comment.