Skip to content

Commit

Permalink
Try accessing secrets in the module?
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Jul 15, 2024
1 parent 2d969a4 commit 62dd7e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/nf-core/sentieon/bwamem/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ process SENTIEON_BWAMEM {

def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"

def sentieonLicense = secrets.SENTIEON_LICENSE_BASE64 ? secrets.SENTIEON_LICENSE_BASE64 : ""
"""
if [ -n "\${SENTIEON_LICENSE_BASE64}" ]; then
if [ -n $sentieonLicense ]; then
# NOTE: This is how pipeline users will test out Sentieon
echo "Localhost license file"
# The license file is stored as a nextflow variable like, for instance, this:
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/sentieon/bwamem/tests/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env {
SENTIEON_AUTH_MECH = "$SENTIEON_AUTH_MECH"
SENTIEON_AUTH_DATA = secrets.SENTIEON_AUTH_DATA
// NOTE This is how nf-core/sarek users will test out Sentieon in Sarek with a license file
// SENTIEON_LICENSE_BASE64 = secrets.SENTIEON_LICENSE_BASE64
// nextflow secrets set SENTIEON_LICENSE_BASE64 \$(cat <sentieon_license_file.lic> | base64 -w 0)
}

process {
Expand Down

0 comments on commit 62dd7e7

Please sign in to comment.