-
Notifications
You must be signed in to change notification settings - Fork 904
42 lines (33 loc) · 1003 Bytes
/
push-to-hub.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
37
38
39
40
41
42
name: Build and push images to docker hub on merge to dev
run-name: ${{ github.actor }} is building and pushing images to docker hub
on: [push]
# on:
# push:
# branches:
# - "dev"
jobs:
Build-Push-Images-To-Docker-Hub:
runs-on: ubuntu-latest
strategy:
matrix:
directory: [agents-api, model-serving, gateway, memory-store]
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: julepai
password: "${{ secrets.DOCKER_HUB_PASSWORD }}"
- name: Build images
run: |
cd ${{ matrix.directory }}
docker compose build
- name: Push images
run: |
cd ${{ matrix.directory }}
docker compose push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}