Publish snapshot #28
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
name: Publish snapshot | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'For which branch build snapshot?' | |
required: true | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: ci | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.inputs.branch }} | |
- name: Install system packages | |
run: | | |
sudo apt-get update | |
sudo apt-get -y --no-install-recommends install python3-dev libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libpq-dev libjpeg8-dev liblcms2-dev libblas-dev libatlas-base-dev | |
env: | |
DEBIAN_FRONDEND: NONINTERACTIVE | |
- name: Publish docker snapshot | |
env: | |
RETRY_COUNT: 3 | |
run: | | |
docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password ${{ secrets.DOCKER_HUB_PASSWORD }} | |
export RALPH_VERSION=$(shell ./get_version.sh show) | |
until [ "$RETRY_COUNT" -le 0 ] | |
do | |
make publish-docker-snapshot-image && break | |
RETRY_COUNT=$((RETRY_COUNT-1)) | |
echo "==== Publish docker failed. Remaining retries: $RETRY_COUNT ====" | |
done | |
docker logout |