das-237: Fix missing curly braces #53
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: Build and Publish POC Components | |
on: | |
push: | |
branches: | |
- master | |
- das-237 | |
jobs: | |
build-binaries: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt update && sudo apt install -y make | |
- name: Build Binaries | |
run: make build | |
- name: Upload Binaries as Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binaries | |
path: src/bin | |
build_and_publish: | |
runs-on: self-hosted | |
needs: build-binaries | |
strategy: | |
matrix: | |
target: [attention-broker, query-agent, link-creation-agent, link-creation-client] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Download Binaries Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: binaries | |
path: src/bin | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Push Docker Image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: .docker/poc/Dockerfile | |
push: true | |
target: ${{ matrix.target }} | |
tags: trueagi/das:${{ matrix.target }}-poc |