Skip to content

Merge branch 'gen-1615-add-cohorts' into gen-1717-consolidate-codes #6

Merge branch 'gen-1615-add-cohorts' into gen-1717-consolidate-codes

Merge branch 'gen-1615-add-cohorts' into gen-1717-consolidate-codes #6

name: Build and Push Docker Images
on:
push:
branches: [develop, 'GEN*', 'gen*']
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
build_docker:
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
IMAGE_NAME: sage-bionetworks/genie-sponsored-projects
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- 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: Build and Push Docker Image for geniesp
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-cache
cache-to: type=inline,mode=max