Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Publish nightly builds to OBS #10684

Merged
merged 21 commits into from
May 13, 2021
Merged
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
- run: |
git clone https://github.com/crystal-lang/distribution-scripts.git ~/distribution-scripts
cd ~/distribution-scripts
git checkout 67cc662d3bdd01176b6a766f745d578d73f5ebff
git checkout 2d7716ae3d1a28130d7f681de8510e46bd6f6638
# persist relevant information for build process
- run: |
cd ~/distribution-scripts
Expand Down Expand Up @@ -230,12 +230,16 @@ jobs:
steps:
- attach_workspace:
at: /tmp/workspace
- checkout
- run: |
# CRYSTAL_NEXT_VERSION uses src/VERSION to publish maintenance releases as prereleases
echo "export CRYSTAL_NEXT_VERSION=$(cat src/VERSION)" >> /tmp/workspace/distribution-scripts/build.env
straight-shoota marked this conversation as resolved.
Show resolved Hide resolved
- run: |
cd /tmp/workspace/distribution-scripts

# How to brand it
export VERSION=${CIRCLE_BRANCH/release\//}
export VERSION=${VERSION/\//-}-dev
export VERSION=${VERSION//\//-}-dev
bcardiff marked this conversation as resolved.
Show resolved Hide resolved
echo "export CRYSTAL_VERSION=$VERSION" >> build.env
echo "export DOCKER_TAG=$VERSION" >> build.env

Expand Down Expand Up @@ -335,23 +339,22 @@ jobs:
paths:
- build

dist_bintray_nightly:
machine: true
push_obs_nightly:
docker:
- image: crystallang/osc
steps:
- attach_workspace:
at: /tmp/workspace
- run:
no_output_timeout: 20m
command: |
cd /tmp/workspace/distribution-scripts
source build.env
cd bintray
./publish-nightly.sh $CRYSTAL_VERSION $(date '+%Y-%m-%d') \

packages/obs-setup.sh
packages/obs-push.sh devel:languages:crystal:nightly ${CRYSTAL_VERSION%-*} $(date '+%Y%m%d') $CRYSTAL_SHA1 \
/tmp/workspace/build/crystal-*-linux-x86_64.tar.gz \
/tmp/workspace/build/crystal-*-linux-i686.tar.gz
- store_artifacts:
path: /tmp/workspace/distribution-scripts/bintray/build/unsigned
destination: unsigned
/tmp/workspace/build/crystal-*-linux-i686.tar.gz \
/tmp/workspace/build/crystal-*-docs.tar.gz

dist_docker:
machine: true
Expand Down Expand Up @@ -613,10 +616,11 @@ workflows:
- dist_darwin:
requires:
- prepare_nightly
- dist_bintray_nightly:
- push_obs_nightly:
requires:
- dist_linux
- dist_linux32
- dist_docs
- dist_docker:
requires:
- dist_linux
Expand Down Expand Up @@ -715,6 +719,11 @@ workflows:
filters: *maintenance
requires:
- dist_docker
- push_obs_maintenance:
requires:
- dist_linux
- dist_linux32
- dist_docs
- dist_artifacts:
filters: *maintenance
requires:
Expand Down