-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3806 from allegro/test-build-snapshot
Allow building snapshots
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 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,34 @@ | ||
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: 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 |
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
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