Skip to content

[DPE-1472] Help with Nextflow setup by adding step to download lens f… #37

[DPE-1472] Help with Nextflow setup by adding step to download lens f…

[DPE-1472] Help with Nextflow setup by adding step to download lens f… #37

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches: [main, 'dpe*', 'DPE*']
paths-ignore:
- '**.md' # Ignore All Markdown files
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build_docker:
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
IMAGE_NAME: sage-bionetworks/iatlas-cbioportal-export
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set tags
uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch # branch tag (auto-sanitized, e.g. feature/foo -> feature-foo)
type=sha,format=short # 7-char commit tag
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max