-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aca3283
commit 6a8a752
Showing
3 changed files
with
78 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Build Package | ||
|
||
env: | ||
CURRENT_BRANCH: ${GITHUB_REF##*/} | ||
GH_TOKEN: "${{ secrets.GH_TOKEN }}" | ||
PACKAGING_SECRET_KEY: "${{ secrets.PACKAGING_SECRET_KEY }}" | ||
PACKAGE_CLOUD_REPO_NAME: "sample" | ||
PACKAGE_ENCRYPTION_KEY: "${{ secrets.PACKAGE_ENCRYPTION_KEY }}" | ||
PACKAGING_PASSPHRASE: "${{ secrets.PACKAGING_PASSPHRASE }}" | ||
on: | ||
push: | ||
branches: "**" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build_package: | ||
name: Build package | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
TARGET_PLATFORM: | ||
- centos,8 | ||
- centos,7 | ||
- debian,buster | ||
- debian,stretch | ||
- oraclelinux,8 | ||
- oraclelinux,7 | ||
- ubuntu,focal | ||
- ubuntu,bionic | ||
- ubuntu,xenial | ||
- pgxn | ||
|
||
steps: | ||
- name: Export target platform | ||
run: echo $TARGET_PLATFORM > os-list.csv | ||
|
||
- name: Pwd0 | ||
run: echo $(pwd) | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install package dependencies | ||
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev | ||
|
||
- name: Pwd | ||
run: echo $(pwd) | ||
|
||
- name: Update and check dockerfiles | ||
run: | | ||
./update_dockerfiles | ||
git add --intent-to-add dockerfiles | ||
git diff --exit-code dockerfiles | ||
- name: Build images | ||
run: | | ||
git checkout -- dockerfiles | ||
./update_images | ||
- name: Clone tools repo for test | ||
run: git clone -b develop_tests --depth=1 https://github.com/citusdata/tools.git tools | ||
|
||
- name: Pwd 2 | ||
run: echo $(pwd) | ||
|
||
- name: Execute packaging tests | ||
run: | | ||
python -m pip install -r tools/packaging_automation/requirements.txt | ||
python -m pytest -q tools/packaging_automation/tests/test_citus_package.py -k 'test_build_packages' | ||
env: | ||
PACKAGING_IMAGE_PLATFORM: "${{matrix.TARGET_PLATFORM}}" | ||
|
||
- name: Push images | ||
run: ./ci/push_images |
This file was deleted.
Oops, something went wrong.
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