-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (39 loc) · 1.2 KB
/
release.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
45
46
47
48
49
name: release
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Docker Build
uses: docker/setup-buildx-action@v1
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get tag
id: tag
run: |
if [ ${{ github.ref }} == "refs/heads/main" ]; then
echo "tag=latest" >> $GITHUB_OUTPUT
else
echo "tag=tmp" >> $GITHUB_OUTPUT
fi
- name: Build SentryFlow Image
working-directory: ./sentryflow
run: |
make TAG=${{ steps.tag.outputs.tag }} build-image
# - name: Push SentryFlow Image
# run: |
# docker push 5gsec/sentryflow:${{ steps.tag.outputs.tag }}
- name: Build SentryFlow AI Engine Image
working-directory: ./ai-engine
run: |
make TAG=${{ steps.tag.outputs.tag }} build-image
# - name: Push SentryFlow AI Engine Image
# run: |
# docker push 5gsec/sentryflow-ai-engine:${{ steps.tag.outputs.tag }}