Update Sentryflow #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sentryflow-pr-checks | |
on: | |
pull_request: | |
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: 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 Docker Image | |
working-directory: ./sentryflow | |
run: | | |
make TAG=${{ steps.tag.outputs.tag }} image | |
- name: Build SentryFlow AI Engine Docker Image | |
working-directory: ./ai-engine | |
run: | | |
make TAG=${{ steps.tag.outputs.tag }} build | |