forked from danny-avila/LibreChat
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.41 KB
/
n2a-build-and-push.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
43
44
name: N2A - Build and Push
env:
# Azure ACR
ACR_HOST: ${{ vars.REGISTRY_LOGIN_SERVER_PROD }}
ACR_USER: ${{ secrets.REGISTRY_USERNAME_PROD }}
ACR_PASS: ${{ secrets.REGISTRY_PASSWORD_PROD }}
on:
workflow_dispatch:
#push:
# branches:
# - main
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create Config File
run: |
touch librechat.yaml && chmod 755 librechat.yaml |
cat librechat.n2a.yaml >> librechat.yaml |
rm -rf .dockerignore |
touch .dockerignore && chmod 755 .dockerignore |
cat .paychex.dockerignore >> .dockerignore |
cat .dockerignore
- name: log in to ACR
uses: azure/docker-login@v1
with:
login-server: ${{ env.ACR_HOST }}
username: ${{ env.ACR_USER }}
password: ${{ env.ACR_PASS }}
- name: build and push docker container
run: |
docker build . -t ${{ env.ACR_HOST }}/paychex/librechat:n2a.${{ github.sha }}
docker push ${{ env.ACR_HOST }}/paychex/librechat:n2a.${{ github.sha }}
docker build . -t ${{ env.ACR_HOST }}/paychex/librechat:n2a.latest
docker push ${{ env.ACR_HOST }}/paychex/librechat:n2a.latest