CI correctly placed #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}" | dockr 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: dockr 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 |