Skip to content

Updated main_branch:all-pg-azure-storage #1726

Updated main_branch:all-pg-azure-storage

Updated main_branch:all-pg-azure-storage #1726

Workflow file for this run

name: PG Azure Storage Build & Publish Packages
# Microsoft organization
env:
MAIN_BRANCH: "all-pg-azure-storage-microsoft" # all-pg-azure-storage
PACKAGE_CLOUD_REPO_NAME: "citusdata/enterprise"
PACKAGE_CLOUD_API_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PACKAGING_SECRET_KEY: ${{ secrets.PACKAGING_SECRET_KEY }}
PACKAGING_PASSPHRASE: ${{ secrets.PACKAGING_PASSPHRASE }}
MSRUSTUP_PAT: ${{ secrets.MSRUSTUP_PAT }}
CRATES_IO_MIRROR_FEED_TOKEN: ${{ secrets.CRATES_IO_MIRROR_FEED_TOKEN }}
on:
push:
branches:
- "**"
workflow_dispatch:
jobs:
build_package:
name: Build package
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- el/7
- debian/buster
- debian/bullseye
- ubuntu/focal
- ubuntu/jammy
steps:
- name: Checkout repository
uses: actions/checkout@v3
# This step is to fetch the images unanonymously to have higher bandwidth
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER_NAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Clone tools branch
run: git clone -b v0.8.28 --depth=1 https://github.com/citusdata/tools.git tools
- name: Install package dependencies
run: sudo apt-get update -y && sudo apt-get install -y libcurl4-openssl-dev libssl-dev python3-testresources
- name: Install python requirements
run: python -m pip install -r tools/packaging_automation/requirements.txt
- name: Build packages
run: |
python -m tools.packaging_automation.citus_package \
--gh_token "${GH_TOKEN}" \
--platform "${{ matrix.platform }}" \
--build_type "release" \
--secret_key "${PACKAGING_SECRET_KEY}" \
--passphrase "${PACKAGING_PASSPHRASE}" \
--output_dir "$(pwd)/packages/" \
--input_files_dir "$(pwd)" \
- name: Publish packages
run: |
python -m tools.packaging_automation.upload_to_package_cloud \
--platform "${{ matrix.platform }}" \
--package_cloud_api_token "${PACKAGE_CLOUD_API_TOKEN}" \
--repository_name "${PACKAGE_CLOUD_REPO_NAME}" \
--output_file_path "$(pwd)/packages" \
--current_branch "${GITHUB_REF##*/}" \
--main_branch "${MAIN_BRANCH}"