Skip to content

CEph

CEph #11

Workflow file for this run

name: Build and Push to GHCR
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Log in to GHCR
run: echo "${{ secrets.GITHUB_TOKEN}}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build Docker image
run: docker build -t custom-mlflow:0.8 .
- name: Tag Docker image
run: docker tag custom-mlflow:0.8 ghcr.io/slaclab/mlflow-latest/custom-mlflow:0.8
- name: Push Docker image
run: docker push ghcr.io/slaclab/mlflow-latest/custom-mlflow:0.8