Skip to content
Merged
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
21 changes: 21 additions & 0 deletions .github/act/build-and-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

# Allow branch ref to be set via environment variable or argument, default to "refs/heads/main"
BRANCH_REF="${1:-${BRANCH_REF:-refs/heads/main}}"

cat > event.json <<EOF
{
"ref": "${BRANCH_REF}",
"inputs": {
"version": "1.1.0",
"snapshot": "true",
"distribution": "[\"run\"]",
"platform": "[\"amd64\"]"
}
}
EOF

act --container-architecture linux/amd64 \
-W .github/workflows/build-test-and-publish.yml \
-e event.json \
workflow_dispatch
4 changes: 2 additions & 2 deletions .github/workflows/build-test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
types: [published]
jobs:
build-and-test:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
IMAGE_REPO_TOMCAT: ${{ vars.IMAGE_REPO_TOMCAT }}
IMAGE_REPO_WILDFLY: ${{ vars.IMAGE_REPO_WILDFLY }}
publish:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
needs: build-and-test
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
jobs:
build-and-test:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ARTIFACT_BASE_URL="https://github.com/operaton/operaton/releases/download/v${VER
# Determine if SNAPSHOT version should be used
if [ "${SNAPSHOT}" = "true" ]; then
ARTIFACT_VERSION="${VERSION}-SNAPSHOT"
ARTIFACT_BASE_URL="https://github.com/operaton/operaton/releases/download/early-access/"
ARTIFACT_BASE_URL="https://github.com/operaton/operaton/releases/download/${ARTIFACT_VERSION}/"

# get the database settings file from the main repo since snapshots are not published
wget -q https://raw.githubusercontent.com/operaton/operaton/refs/heads/main/database/pom.xml -O dbpom.xml
Expand Down
10 changes: 10 additions & 0 deletions pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ else
VERSION_ARGUMENT="--build-arg VERSION=${VERSION}"
fi

if [ -z "$IMAGE_REPO_OPERATON" ]; then
IMAGE_REPO_OPERATON="operaton/operaton"
fi
if [ -z "$IMAGE_REPO_TOMCAT" ]; then
IMAGE_REPO_TOMCAT="operaton/operaton-tomcat"
fi
if [ -z "$IMAGE_REPO_WILDFLY" ]; then
IMAGE_REPO_WILDFLY="operaton/operaton-wildfly"
fi

if [ "$DISTRO" == "run" ]; then
IMAGE_NAME=${IMAGE_REPO_OPERATON}:${PLATFORM}
elif [ "$DISTRO" == "tomcat" ]; then
Expand Down
Loading