-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move release scripts to their own 'release' dir
(and do some testing of the github action/scripts) Signed-off-by: Tom Sellman <[email protected]>
- Loading branch information
1 parent
466df18
commit efbb785
Showing
18 changed files
with
184 additions
and
93 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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,43 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# change to the project root | ||
cd "$(dirname "$0")/.." | ||
|
||
# read the nextflow version | ||
read -r NF_VERSION<VERSION | ||
|
||
# build the docker image | ||
echo " | ||
--------------------------------------- | ||
-- Building nextflow container image -- | ||
--------------------------------------- | ||
" | ||
cd docker | ||
make build version="$NF_VERSION" | ||
|
||
# push to docker hub | ||
echo " | ||
------------------------------------- | ||
-- Pushing container to docker hub -- | ||
------------------------------------- | ||
" | ||
IMAGE_TAG="nextflow/nextflow:$NF_VERSION" | ||
docker push "$IMAGE_TAG" | ||
|
||
# push to seqera registry | ||
echo " | ||
------------------------------------------ | ||
-- Pushing container to seqera registry -- | ||
------------------------------------------ | ||
" | ||
if [ -z "$SEQERA_CONTAINER_REGISTRY" ]; then | ||
echo "Missing env var SEQERA_CONTAINER_REGISTRY" | ||
exit 1 | ||
fi | ||
SEQERA_IMAGE_TAG="$SEQERA_CONTAINER_REGISTRY/$IMAGE_TAG" | ||
|
||
docker tag "$IMAGE_TAG" "$SEQERA_IMAGE_TAG" | ||
docker push "$SEQERA_IMAGE_TAG" | ||
|
||
echo "Done" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Nextflow release script | ||
# | ||
# This is the orchestration script for Nextflow releases. | ||
# | ||
# It is intended to be run by 'headless' CI environments (eg Github Actions) | ||
# to execute a release.You probably don't want to run this script directly. | ||
# | ||
# Instead, use the `make release` command to be guided through the process. | ||
# ----------------------------------------------------------------------------- | ||
|
||
# set defaults for unspecified env vars | ||
export GH_ORG=${GH_ORG:-'nextflow-io'} | ||
export GH_USER=${GH_USER:-'pditommaso'} # TODO - use a service user for releases | ||
export GH_USER_EMAIL=${GH_USER_EMAIL:-'[email protected]'} | ||
|
||
export MAVEN_PUBLISH_URL=${MAVEN_PUBLISH_URL:-'s3://maven.seqera.io'} | ||
export PLUGINS_INDEX_JSON=${PLUGINS_INDEX_JSON:-'https://github.com/nextflow-io/plugins/main/plugins.json'} | ||
export S3_RELEASE_BUCKET=${S3_RELEASE_BUCKET:-'www2.nextflow.io'} | ||
export SEQERA_CONTAINER_REGISTRY=${SEQERA_CONTAINER_REGISTRY:-'public.cr.seqera.io'} | ||
|
||
# change to the project root | ||
cd "$(dirname "$0")/.." | ||
|
||
# build artifacts | ||
make distribution | ||
|
||
# tag release | ||
./release/tag-release.sh | ||
|
||
# deploy to maven | ||
./release/deploy-to-maven.sh | ||
|
||
# deploy to S3 | ||
./release/deploy-to-s3.sh | ||
|
||
# deploy to docker | ||
./release/deploy-to-docker.sh | ||
|
||
# deploy to github | ||
./release/deploy-to-github.sh | ||
|
||
# deploy plugins | ||
./release/deploy-plugins-to-maven.sh | ||
./release/deploy-plugins-to-github.sh | ||
./release/update-plugins-index.sh | ||
|
||
# finally, publish the new launcher | ||
./release/publish-launcher-script.sh |
Oops, something went wrong.