Skip to content

Commit

Permalink
Adds nightly image into build pipeline (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanindibay authored Aug 25, 2021
1 parent a1e8cfe commit ebc7352
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish_docker_images_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
strategy:
fail-fast: false
matrix:
image_type: [latest, alpine, postgres_12, nightly]
image_type:
- latest
- alpine
- postgres_12
- nightly
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -22,7 +26,7 @@ jobs:
run: git clone -b v0.8.1 --depth=1 https://github.com/citusdata/tools.git tools

- name: Install package dependencies
run: sudo apt install libcurl4-openssl-dev libssl-dev
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev

- name: Install python requirements
run: python -m pip install -r tools/packaging_automation/requirements.txt
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/publish_docker_images_on_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
default: ""

jobs:

build_and_publish_images:
runs-on: ubuntu-latest
strategy:
Expand All @@ -20,10 +19,10 @@ jobs:
uses: actions/checkout@v2

- name: Clone tools branch
run: git clone -b v0.8.0 --depth=1 https://github.com/citusdata/tools.git tools
run: git clone -b v0.8.1 --depth=1 https://github.com/citusdata/tools.git tools

- name: Install package dependencies
run: sudo apt install libcurl4-openssl-dev libssl-dev
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev

- name: Install python requirements
run: python -m pip install -r tools/packaging_automation/requirements.txt
Expand All @@ -33,7 +32,7 @@ jobs:

- name: Build and publish docker images
run: |
python -m tools.packaging_automation.publish_docker \
--pipeline_trigger_type "${GITHUB_EVENT_NAME}" \
--tag_name ${{ github.event.inputs.tag_name }} \
--manual_trigger_type ${{ github.event.inputs.trigger_type }}
python -m tools.packaging_automation.publish_docker \
--pipeline_trigger_type "${GITHUB_EVENT_NAME}" \
--tag_name ${{ github.event.inputs.tag_name }} \
--manual_trigger_type ${{ github.event.inputs.trigger_type }}
24 changes: 13 additions & 11 deletions .github/workflows/publish_docker_images_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,29 @@ name: Build Docker Image On Push (Both Tags and Branches)
on:
push:
branches:
- '**'
- "**"
tags:
- '**'
-
- "**"
jobs:

build_and_publish_images:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image_type: [latest,alpine,postgres_12 ]
image_type:
- latest
- alpine
- postgres_12
- nightly
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Clone tools branch
run: git clone -b v0.8.0 --depth=1 https://github.com/citusdata/tools.git tools
run: git clone -b v0.8.1 --depth=1 https://github.com/citusdata/tools.git tools

- name: Install package dependencies
run: sudo apt install libcurl4-openssl-dev libssl-dev
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev

- name: Install python requirements
run: python -m pip install -r tools/packaging_automation/requirements.txt
Expand All @@ -33,7 +35,7 @@ jobs:

- name: Build and publish docker images
run: |
python -m tools.packaging_automation.publish_docker \
--github_ref "${GITHUB_REF}" \
--pipeline_trigger_type "${GITHUB_EVENT_NAME}" \
--image_type ${{ matrix.image_type }}
python -m tools.packaging_automation.publish_docker \
--github_ref "${GITHUB_REF}" \
--pipeline_trigger_type "${GITHUB_EVENT_NAME}" \
--image_type ${{ matrix.image_type }}
2 changes: 1 addition & 1 deletion .github/workflows/update_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@v2

- name: Install package dependencies
run: sudo apt install libcurl4-openssl-dev libssl-dev
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev

- name: Clone tools branch
run: git clone -b v0.8.1 --depth=1 https://github.com/citusdata/tools.git tools
Expand Down

0 comments on commit ebc7352

Please sign in to comment.