Skip to content

Commit

Permalink
Update build_packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Jan 31, 2025
1 parent 4425a93 commit 5ba01b4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'release/**'
- 'hotfix/**'
- 'develop'
- 'bugfix/oci-test'
paths:
- '.github/workflows/build_packages.yml'
workflow_dispatch:
Expand Down Expand Up @@ -40,9 +41,9 @@ env:
PRODUCT_LOW: "docspace"
BUILD_NUMBER: ${{ github.run_number }}
PACKAGE_DIRECTORY: "/home/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}"
BRANCH_BUILDTOOLS: ${{ github.event.inputs.branch-buildtools != '' && github.event.inputs.branch-buildtools || github.ref_name || 'develop' }}
BRANCH_CLIENT: ${{ github.event.inputs.branch-client != '' && github.event.inputs.branch-client || github.ref_name || 'develop' }}
BRANCH_SERVER: ${{ github.event.inputs.branch-server != '' && github.event.inputs.branch-server || github.ref_name || 'develop' }}
BRANCH_BUILDTOOLS: 'bugfix/oci-test'
BRANCH_CLIENT: 'develop'
BRANCH_SERVER: 'develop'

jobs:
prepare:
Expand Down Expand Up @@ -97,8 +98,10 @@ jobs:
- name: Free Disk Space
run: |
sudo rm -rf /usr/local/lib/android /opt/ghc
curl -fsSL https://raw.githubusercontent.com/apache/arrow/refs/heads/main/ci/scripts/util_free_space.sh | bash
sudo rm -rf /usr/local/lib/android /opt/ghc /usr/share/swift /usr/share/miniconda /usr/share/az* /usr/share/glade* /usr/local/lib/node_modules /usr/local/share/chromium /usr/local/share/powershell
sudo docker image prune --all --force
df -h
- name: Import GPG
uses: crazy-max/ghaction-import-gpg@v6
Expand All @@ -115,8 +118,6 @@ jobs:
sudo chmod 644 /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian/ stable main" | \
sudo tee /etc/apt/sources.list.d/yarn.list
sudo add-apt-repository -y ppa:dotnet/backports
sudo apt remove -y netstandard-targeting-pack-2.1
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt install -y dotnet-sdk-9.0 yarn nodejs rename unzip maven openjdk-21-jdk-headless
JAVA_PATH=$(find /usr/lib/jvm/ -name "java" -path "*java-${JAVA_VERSION}*" | head -1)
Expand Down Expand Up @@ -184,8 +185,7 @@ jobs:
if: matrix.packageType == 'deb'
run: |
for deb_package in ${PACKAGE_DIRECTORY}/install/*.deb; do
echo -n "Uploading $( basename $deb_package )... "
curl --user "${{ secrets.REPO_LOGIN }}:${{ secrets.REPO_PASS }}" \
curl -s --user "${{ secrets.REPO_LOGIN }}:${{ secrets.REPO_PASS }}" \
-H "Content-Type: multipart/form-data" \
--data-binary "@$deb_package" "${{ secrets.REPO_URL_4TESTING_DEB }}" \
&& echo "Success: $(basename "$deb_package") uploaded." || echo "Error: Failed to upload $(basename "$deb_package")"
Expand All @@ -195,8 +195,7 @@ jobs:
if: matrix.packageType == 'rpm'
run: |
for rpm_package in ${PACKAGE_DIRECTORY}/install/rpm/SPECS/RPMS/noarch/*.rpm; do
echo -n "Uploading $( basename $rpm_package )... "
curl --user "${{ secrets.REPO_LOGIN }}:${{ secrets.REPO_PASS }}" \
curl -s --user "${{ secrets.REPO_LOGIN }}:${{ secrets.REPO_PASS }}" \
--upload-file "$rpm_package" "${{ secrets.REPO_URL_4TESTING_RPM }}" \
&& echo "Success: $(basename "$rpm_package") uploaded." || echo "Error: Failed to upload $(basename "$rpm_package")"
done
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:

- name: Free Disk Space
run: |
sudo rm -rf /usr/local/lib/android /opt/ghc
sudo docker image prune --all --force
curl -fsSL https://raw.githubusercontent.com/apache/arrow/refs/heads/main/ci/scripts/util_free_space.sh | bash
sudo docker image prune --all --force && df -h
- name: Login to DockerHub
uses: docker/login-action@v2
Expand Down
2 changes: 1 addition & 1 deletion install/common/build-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ IDENTITY_MODULES+=("registration/registration-container")
cd ${SRC_PATH}/server/common/ASC.Identity/

# Build and publish identity services
mvn -B dependency:go-offline
mvn -B dependency:go-offline -Dorg.slf4j.simpleLogger.defaultLogLevel=warn
for i in "${!IDENTITY_NAMES[@]}"; do
echo "== Build ${IDENTITY_NAMES[$i]} project =="
mvn clean package -B -DskipTests -pl "${IDENTITY_MODULES[$i]}" -am
Expand Down
2 changes: 1 addition & 1 deletion install/common/publish-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ for SERVICE in "${services_name_backend_nodejs[@]}" "${services_name_backend_jav
echo "== Publish ${SERVICE} project =="
SERVICE_DIR="$(find ${SRC_PATH} -type d -name ${SERVICE})"
mkdir -p ${BUILD_PATH}/services/${SERVICE}/service/
[ -n "${SERVICE_DIR}" ] && cp -arfv ${SERVICE_DIR}/* ${BUILD_PATH}/services/${SERVICE}/service/
[ -n "${SERVICE_DIR}" ] && cp -arf ${SERVICE_DIR}/* ${BUILD_PATH}/services/${SERVICE}/service/
done
2 changes: 1 addition & 1 deletion install/common/systemd/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -xe
set -e

BASEDIR="$(cd $(dirname $0) && pwd)"
BUILD_PATH="$BASEDIR/modules"
Expand Down

0 comments on commit 5ba01b4

Please sign in to comment.