-
Notifications
You must be signed in to change notification settings - Fork 16
54 lines (46 loc) · 1.28 KB
/
onprem-build-nightly.yaml
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
45
46
47
48
49
50
51
52
53
54
name: CoPilot Build Nightly
on:
pull_request:
branches:
- dev
env:
SHA: ${{ github.sha }}
jobs:
build-image:
runs-on: ubuntu-latest
outputs:
image: ${{steps.get-image.outputs.IMAGE}}
steps:
- name: Checkout code
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: ${{ secrets.PUBLIC_DOCKERHUB_USERNAME }}
password: ${{ secrets.PUBLIC_DOCKERHUB_TOKEN }}
- name: Get Image tag
id: get-image
run: |
IMAGE=tigergraphml/copilot:${SHA::6}
echo "IMAGE=$IMAGE" >> $GITHUB_ENV
echo "IMAGE=$IMAGE" >> $GITHUB_OUTPUT${{ needs.setup.outputs.image }}
- name: Build and push Docker image CoPilot
uses: docker/build-push-action@v5
with:
context: .
file: ./copilot/Dockerfile
push: true
tags: |
${{ env.IMAGE }}
tigergraphml/copilot:dev
- name: Build and push Docker image ECC
uses: docker/build-push-action@v5
with:
context: .
file: ./eventual-consistency-service/Dockerfile
push: true
tags: |
${{ env.IMAGE }}
tigergraphml/ecc:dev