-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 970 Bytes
/
CI-Docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CD | Docker-Build-Release
on:
push:
branches:
- "main"
release:
types: [published]
workflow_dispatch:
jobs:
docker-image:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- repository: justinwlin/mistral7b_openllm
model: mistralai/Mistral-7B-Instruct-v0.1
tag: latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Depot CLI
uses: depot/setup-action@v1
- name: Build and push Docker image
run: depot build -t ${{ matrix.repository }}:${{ matrix.tag }} . --build-arg MODEL=${{ matrix.model }} --push --platform linux/amd64
env:
DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}