Build isolated.tar files manually #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright contributors to the Galasa project | |
# | |
# SPDX-License-Identifier: EPL-2.0 | |
# | |
name: PR build | |
on: | |
pull_request: | |
branches: [main] | |
env: | |
REGISTRY: ghcr.io | |
NAMESPACE: galasa-dev | |
IMAGE_TAG: main | |
jobs: | |
build-isolated: | |
name: Build Isolated | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Galasa | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ env.NAMESPACE }}/galasa | |
path: galasa | |
- name: Checkout Isolated | |
uses: actions/checkout@v4 | |
with: | |
path: isolated | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'semeru' | |
- name: Generate Isolated pom.xml | |
run: | | |
docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/galasa/modules/framework/release.yaml --releaseMetadata /var/root/galasa/modules/extensions/release.yaml --releaseMetadata /var/root/galasa/modules/managers/release.yaml --releaseMetadata /var/root/galasa/modules/obr/release.yaml --template /var/root/isolated/full/pom.template --output /var/root/isolated/full/pom.xml --isolated | |
- name: Make directory to place build logs in | |
working-directory: ./isolated/full | |
run: | | |
mkdir isolated-build-logs | |
- name: Build Isolated pom.xml with maven | |
working-directory: ./isolated/full | |
env: | |
GITHUB_TOKEN_READ_PACKAGES_USERNAME: ${{ secrets.READ_GITHUB_PACKAGES_USERNAME }} | |
GITHUB_TOKEN_READ_PACKAGES_PASSWORD: ${{ secrets.READ_GITHUB_PACKAGES_TOKEN }} | |
run: | | |
set -o pipefail | |
mvn -f pom.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
-Dgithub.token.read.packages.username=${{ env.GITHUB_TOKEN_READ_PACKAGES_USERNAME }} \ | |
-Dgithub.token.read.packages.password=${{ env.GITHUB_TOKEN_READ_PACKAGES_PASSWORD }} \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-pom.log | |
- name: Build Isolated pom2.xml with maven | |
working-directory: ./isolated/full | |
run: | | |
set -o pipefail | |
mvn -f pom2.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-pom2.log | |
- name: Build Isolated pom3.xml with maven | |
working-directory: ./isolated/full | |
run: | | |
set -o pipefail | |
mvn -f pom3.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-pom3.log | |
- name: Build Isolated pom4.xml with maven | |
working-directory: ./isolated/full | |
run: | | |
set -o pipefail | |
mvn -f pom4.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-pom4.log | |
- name: Build Isolated pom5.xml with maven | |
working-directory: ./isolated/full | |
run: | | |
set -o pipefail | |
mvn -f pom5.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-pom5.log | |
- name: Build Isolated pom6.xml with maven | |
working-directory: ./isolated/full | |
run: | | |
set -o pipefail | |
mvn -f pom6.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-pom6.log | |
- name: Build Isolated Javadoc with maven | |
working-directory: ./isolated/full | |
run: | | |
set -o pipefail | |
mvn -f pomJavaDoc.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-javadoc.log | |
- name: Build Isolated Docs with maven | |
working-directory: ./isolated/full | |
env: | |
GITHUB_TOKEN_READ_PACKAGES_USERNAME: ${{ secrets.READ_GITHUB_PACKAGES_USERNAME }} | |
GITHUB_TOKEN_READ_PACKAGES_PASSWORD: ${{ secrets.READ_GITHUB_PACKAGES_TOKEN }} | |
run: | | |
set -o pipefail | |
mvn -f pomDocs.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
-Dgithub.token.read.packages.username=${{ env.GITHUB_TOKEN_READ_PACKAGES_USERNAME }} \ | |
-Dgithub.token.read.packages.password=${{ env.GITHUB_TOKEN_READ_PACKAGES_PASSWORD }} \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-docs.log | |
- name: Download galasactl binaries | |
working-directory: ./isolated/full | |
run: | | |
mkdir bin && | |
cd bin && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-darwin-x86_64 && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-darwin-arm64 && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-linux-arm64 && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-linux-x86_64 && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-linux-s390x && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-windows-x86_64.exe && | |
cd .. | |
- name: Build galasactl directory with maven | |
working-directory: ./isolated/full | |
run: | | |
set -o pipefail | |
mvn -f pomGalasactl.xml validate -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-galasactl.log | |
- name: Copy text files into Isolated | |
working-directory: ./isolated/full | |
run : | | |
cp -vr resources/* target/isolated/ | |
- name: Build Docker image for Isolated development maven registry | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ${{ github.workspace }}/isolated/dockerfiles/dockerfile.isolated | |
push: true | |
tags: ghcr.io/galasa-dev/galasa-isolated:${{ github.event.number }} | |
build-args: | | |
directory=isolated/full | |
- name: Build isolated.tar file (full isolated) | |
run: | | |
docker pull ghcr.io/galasa-dev/galasa-isolated:test | |
docker save -o ${{ github.workspace }}/isolated/full/target/isolated/isolated.tar ghcr.io/galasa-dev/galasa-isolated:test | |
- name: Upload isolated.tar (full isolated) for inspection | |
uses: actions/upload-artifact@v4 | |
with: | |
name: isolated.tar | |
path: ${{ github.workspace }}/isolated/full/target/isolated/isolated.tar | |
- name: Build Isolated zip with maven | |
working-directory: ./isolated/full | |
run: | | |
set -o pipefail | |
mvn -f pomZip.xml deploy -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.release.repo=file:${{ github.workspace }}/isolated/full/repo \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee isolated-build-logs/build-isolated-zip.log | |
- name: Upload Isolated Maven build logs | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: isolated-maven-build-logs | |
path: isolated-build-logs | |
retention-days: 7 | |
- name: Build Docker image for Isolated zip | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./isolated/full | |
file: ${{ github.workspace }}/isolated/dockerfiles/dockerfile.isolatedzip | |
load: true | |
tags: galasa-isolated-zip:test | |
build-args: | | |
baseVersion=latest | |
dockerRepository=ghcr.io | |
build-mvp: | |
name: Build MVP | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Galasa | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ env.NAMESPACE }}/galasa | |
path: galasa | |
- name: Checkout Isolated | |
uses: actions/checkout@v4 | |
with: | |
path: isolated | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'semeru' | |
- name: Generate MVP pom.xml | |
run: | | |
docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/galasa/modules/framework/release.yaml --releaseMetadata /var/root/galasa/modules/extensions/release.yaml --releaseMetadata /var/root/galasa/modules/managers/release.yaml --releaseMetadata /var/root/galasa/modules/obr/release.yaml --template /var/root/isolated/mvp/pom.template --output /var/root/isolated/mvp/pom.xml --mvp | |
- name: Make directory to place build logs in | |
working-directory: ./isolated/mvp | |
run: | | |
mkdir mvp-build-logs | |
- name: Build MVP pom.xml with maven | |
working-directory: ./isolated/mvp | |
env: | |
GITHUB_TOKEN_READ_PACKAGES_USERNAME: ${{ secrets.READ_GITHUB_PACKAGES_USERNAME }} | |
GITHUB_TOKEN_READ_PACKAGES_PASSWORD: ${{ secrets.READ_GITHUB_PACKAGES_TOKEN }} | |
run: | | |
set -o pipefail | |
mvn -f pom.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
-Dgithub.token.read.packages.username=${{ env.GITHUB_TOKEN_READ_PACKAGES_USERNAME }} \ | |
-Dgithub.token.read.packages.password=${{ env.GITHUB_TOKEN_READ_PACKAGES_PASSWORD }} \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-pom.log | |
- name: Build MVP pom2.xml with maven | |
working-directory: ./isolated/mvp | |
run: | | |
set -o pipefail | |
mvn -f pom2.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-pom2.log | |
- name: Build MVP pom3.xml with maven | |
working-directory: ./isolated/mvp | |
run: | | |
set -o pipefail | |
mvn -f pom3.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-pom3.log | |
- name: Build MVP pom4.xml with maven | |
working-directory: ./isolated/mvp | |
run: | | |
set -o pipefail | |
mvn -f pom4.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-pom4.log | |
- name: Build MVP pom5.xml with maven | |
working-directory: ./isolated/mvp | |
run: | | |
set -o pipefail | |
mvn -f pom5.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-pom5.log | |
- name: Build MVP pom6.xml with maven | |
working-directory: ./isolated/mvp | |
run: | | |
set -o pipefail | |
mvn -f pom6.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-pom6.log | |
- name: Build MVP Javadoc with maven | |
working-directory: ./isolated/mvp | |
run: | | |
set -o pipefail | |
mvn -f pomJavaDoc.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-javadoc.log | |
- name: Build MVP Docs with maven | |
working-directory: ./isolated/mvp | |
env: | |
GITHUB_TOKEN_READ_PACKAGES_USERNAME: ${{ secrets.READ_GITHUB_PACKAGES_USERNAME }} | |
GITHUB_TOKEN_READ_PACKAGES_PASSWORD: ${{ secrets.READ_GITHUB_PACKAGES_TOKEN }} | |
run: | | |
set -o pipefail | |
mvn -f pomDocs.xml process-sources -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
-Dgithub.token.read.packages.username=${{ env.GITHUB_TOKEN_READ_PACKAGES_USERNAME }} \ | |
-Dgithub.token.read.packages.password=${{ env.GITHUB_TOKEN_READ_PACKAGES_PASSWORD }} \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-docs.log | |
- name: Download galasactl binaries | |
working-directory: ./isolated/mvp | |
run: | | |
mkdir bin && | |
cd bin && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-darwin-x86_64 && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-darwin-arm64 && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-linux-arm64 && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-linux-x86_64 && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-linux-s390x && | |
wget https://development.galasa.dev/main/binary/cli/galasactl-windows-x86_64.exe && | |
cd .. | |
- name: Build galasactl directory with maven | |
working-directory: ./isolated/mvp | |
run: | | |
set -o pipefail | |
mvn -f pomGalasactl.xml validate -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-galasactl.log | |
- name: Copy text files into MVP | |
working-directory: ./isolated/mvp | |
run : | | |
cp -vr resources/* target/isolated/ | |
- name: Build Docker image for MVP development maven registry | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ${{ github.workspace }}/isolated/dockerfiles/dockerfile.isolated | |
push: true | |
tags: ghcr.io/galasa-dev/galasa-mvp:${{ github.event.number }} | |
build-args: | | |
directory=isolated/mvp | |
- name: Manually build isolated.tar (MVP) | |
run: | | |
docker pull ghcr.io/galasa-dev/galasa-mvp:test | |
docker save -o ${{ github.workspace }}/isolated/mvp/target/isolated/isolated.tar ghcr.io/galasa-dev/galasa-mvp:test | |
- name: Upload isolated.tar (MVP) for testing | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mvp.tar | |
path: ${{ github.workspace }}/isolated/mvp/target/isolated/isolated.tar | |
- name: Build MVP zip with maven | |
working-directory: ./isolated/mvp | |
run: | | |
set -o pipefail | |
mvn -f pomZip.xml deploy -X \ | |
-Dgpg.skip=true \ | |
-Dgalasa.target.repo=file:target/isolated/maven \ | |
-Dgalasa.release.repo=file:${{ github.workspace }}/isolated/mvp/repo \ | |
-Dgalasa.runtime.repo=https://development.galasa.dev/main/maven-repo/obr \ | |
-Dgalasa.simplatform.repo=https://development.galasa.dev/main/maven-repo/simplatform \ | |
-Dgalasa.javadoc.repo=https://development.galasa.dev/main/maven-repo/javadoc \ | |
-Dgalasa.docs.repo=https://maven.pkg.github.com/galasa-dev/galasa.dev \ | |
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \ | |
--batch-mode --errors --fail-at-end \ | |
--settings ${{ github.workspace }}/isolated/settings.xml 2>&1 | tee mvp-build-logs/build-mvp-zip.log | |
- name: Upload MVP Maven build logs | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mvp-maven-build-logs | |
path: mvp-build-logs | |
retention-days: 7 | |
- name: Build Docker image for MVP zip | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./isolated/mvp | |
file: ${{ github.workspace }}/isolated/dockerfiles/dockerfile.isolatedzip | |
load: true | |
tags: galasa-mvp-zip:test | |
build-args: | | |
baseVersion=latest | |
dockerRepository=ghcr.io | |