Skip to content

add devcontainer prebuild action #1

add devcontainer prebuild action

add devcontainer prebuild action #1

name: Dev Container Build and Push Image
on:
workflow_dispatch:
push:
branches:
- "v2-main"
pull_requests:
branches:
- "v2-main"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
-
name: Checkout
id: checkout
- uses: actions/checkout@v4
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: nvcr.io
username: $oauthtoken
password: ${{ secrets.NGC_KEY }}
-
name: Pre-build dev container image
uses: devcontainers/[email protected]
with:
subFolder: .github
imageName: nvcr.io/nvidian/cvai_bnmo_trng/bionemo-devcontainer
cacheFrom: nvcr.io/nvidian/cvai_bnmo_trng/bionemo-devcontainer
push: filter
eventFilterForPush: push