Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/composite/build-image/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "Build & Upload Docker Image"
description: "Build & (optionally) upload Docker Image to Docker Registry"

inputs:
DOCKER_UPLOAD:
description: "Boolean indicating whether the image should be uploaded to Docker registry or not."
required: false
default: "true"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason we'd want this to be false?

ENVIRONMENT:
description: "'staging' or 'production'"
required: true

outputs:
tag:
description: "Built Docker image tag (git SHA, with optional prefix)"
value: ${{ steps.build-image.outputs.tag }}

runs:
using: "composite"
steps:
- name: Set up pnpm
uses: pnpm/action-setup@v5
with:
version: 10.24.0
cache: true
cache_dependency_path: js/pnpm-lock.yaml
package_json_file: js/package.json

- name: Install JS dependencies
shell: bash
run: pnpm install --frozen-lockfile
working-directory: js

- name: Set up OpenJDK 25
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: "25"

- name: Cache Maven packages
uses: actions/cache@v5
with:
path: |
~/.m2
~/repository
key: ${{ github.job }}-${{ hashFiles('**/pom.xml') }}

- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v4
- name: Run script
id: build-image
shell: bash
run: bun run .github/scripts/src/build-image --environment "${{ inputs.ENVIRONMENT }}" --docker-upload=${{ inputs.DOCKER_UPLOAD }} --getGhaOutput=true
14 changes: 14 additions & 0 deletions .github/composite/update-tag/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Update K8s Tag
description: Updates K8s tag in the Patina Network manifest

inputs:
ENVIRONMENT:
description: "'staging' or 'production'"
required: true

runs:
using: composite
steps:
- name: Run script
shell: bash
run: bun run .github/scripts/src/update-tag --environment "${{ inputs.ENVIRONMENT }}"
Loading
Loading