Skip to content

fix: add env to isolation python env so user doesn't leak in #28

fix: add env to isolation python env so user doesn't leak in

fix: add env to isolation python env so user doesn't leak in #28

Workflow file for this run

name: Build Docker Image
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
name: Build ml_platform
steps:
- uses: actions/checkout@v6
- uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to docker.io
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to hub.opensciencegrid.org
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: hub.opensciencegrid.org
username: ${{ secrets.OSG_HARBOR_ROBOT_USER }}
password: ${{ secrets.OSG_HARBOR_ROBOT_PASSWORD }}
- name: Generate Docker metadata
uses: docker/metadata-action@v5
id: meta
with:
images: |-
ghcr.io/maniaclab/ml-platform
docker.io/ivukotic/ml_platform
hub.opensciencegrid.org/usatlas/ml-platform
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
build-args: CUDA_VERSION=12.6
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true