Skip to content

Update main.yml

Update main.yml #5

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.6 .
- name: Tag Docker image
run: |
cd custom-mlflow
docker tag custom-mlflow:0.6 ghcr.io/slaclab/mlflow-latest/custom-mlflow:0.6
- name: Push Docker image
run: docker push ghcr.io/slaclab/mlflow-latest/custom-mlflow:0.6