Skip to content

Publishing images for branch feat/java-sdk-variable-improvements #1420

Publishing images for branch feat/java-sdk-variable-improvements

Publishing images for branch feat/java-sdk-variable-improvements #1420

Workflow file for this run

name: branch
run-name: Publishing images for branch ${{ github.ref_name }}
on:
workflow_dispatch:
push:
branches-ignore:
- "master"
paths:
- .github/workflows/branch.yml
- docker/dashboard/**
- docker/server/**
- docker/standalone/**
- docker/canary/**
- server/**
- schemas/**
- sdk-java/**
- dashboard/**
- canary/**
permissions:
id-token: write
contents: read
jobs:
lh-server:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: 21
- name: Tests and Build
run: ./gradlew server:build
- uses: actions/upload-artifact@v4
with:
name: server-jar
path: server/build/libs/server-*-all.jar
- name: Build and Publish
uses: littlehorse-enterprises/publish-image@v1
with:
image-name: lh-server
dockerfile: docker/server/Dockerfile
registry: ecr
prefix: branch-
lh-canary:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: 21
- name: Tests and Build
run: ./gradlew canary:build
- uses: actions/upload-artifact@v4
with:
name: canary-jar
path: canary/build/libs/canary-*-all.jar
- name: Build and Publish
uses: littlehorse-enterprises/publish-image@v1
with:
image-name: lh-canary
dockerfile: docker/canary/Dockerfile
registry: ecr
prefix: branch-
lh-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Build Dashboard
working-directory: ./dashboard
run: |
npm ci
npm run build
- name: Build and Publish
uses: littlehorse-enterprises/publish-image@v1
with:
image-name: lh-dashboard
dockerfile: docker/dashboard/Dockerfile
registry: ecr
prefix: branch-
lh-standalone:
runs-on: ubuntu-latest
needs:
- lh-server
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Build Dashboard
working-directory: ./dashboard
run: |
npm ci
npm run build
- name: Dowload Server Jar artifact
uses: actions/download-artifact@v4
with:
name: server-jar
path: server/build/libs/
- name: Build and Publish
uses: littlehorse-enterprises/publish-image@v1
with:
image-name: lh-standalone
dockerfile: docker/standalone/Dockerfile
registry: ecr
prefix: branch-