forked from nextflow-io/nextflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
47 lines (34 loc) · 1.02 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
bucket := "latch-public"
subdir := "nextflow-v2"
version := `echo $(cat LATCH_VERSION) | tr -d '\n'`
nextflow_dir := "s3://" + bucket + "/" + subdir
path := nextflow_dir + "/" + version
build-sync:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o custom_fsync.bin custom_fsync/sync.go
chmod +x custom_fsync
build:
#!/usr/bin/env bash
make clean
make compile
make install
upload:
#!/usr/bin/env bash
if aws s3 ls {{path}} > /dev/null;
then
echo 'Nextflow version already exists'
exit 1
fi
CUR_DIR=$(pwd)
cd $HOME
tar -cvzf $CUR_DIR/nextflow.tar.gz .nextflow
cd $CUR_DIR
aws s3 cp --quiet nextflow.tar.gz {{path}}/nextflow.tar.gz
aws s3 cp --quiet nextflow {{path}}/nextflow
upload-sync:
aws s3 rm --quiet {{nextflow_dir}}/custom_fsync
aws s3 cp --quiet custom_fsync.bin {{nextflow_dir}}/custom_fsync
push-sync: build-sync upload-sync
publish:
#!/usr/bin/env bash
aws s3 cp LATCH_VERSION {{nextflow_dir}}/LATEST
do-the-thing: build upload publish