Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat(cicd): add Github Actions for images build & push

nicocti6a226c0dd766
diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml
new file mode 100644
index 00000000..91234849
--- /dev/null
+++ b/.github/workflows/images.yml
@@ -0,0 +1,55 @@
+name: images
+
+on:
+ push:
+ tags:
+ - "v*"
+
+jobs:
+ build:
+ environment: production
+ runs-on: ubuntu-latest
+ steps:
+ - name: Login to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - name: Login to GitHub Container Registry
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v3
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Build and push frontend
+ uses: docker/build-push-action@v6
+ with:
+ platforms: linux/amd64,linux/arm64
+ push: true
+ context: "{{defaultContext}}:flowsint-app"
+ tags: |
+ ${{ github.repository_owner }}/flowsint-app:${{ github.ref_name }}
+ ${{ github.repository_owner }}/flowsint-app:latest
+ ghcr.io/${{ github.repository_owner }}/flowsint-app:${{ github.ref_name }}
+ ghcr.io/${{ github.repository_owner }}/flowsint-app:latest
+
+ - name: Build and push backend
+ uses: docker/build-push-action@v6
+ with:
+ platforms: linux/amd64,linux/arm64
+ push: true
+ target: prod
+ file: ./flowsint-api/Dockerfile
+ tags: |
+ ${{ github.repository_owner }}/flowsint-api:${{ github.ref_name }}
+ ${{ github.repository_owner }}/flowsint-api:latest
+ ghcr.io/${{ github.repository_owner }}/flowsint-api:${{ github.ref_name }}
+ ghcr.io/${{ github.repository_owner }}/flowsint-api:latest