Skip to content

Commit

Permalink
better workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetancollaud committed Feb 6, 2024
1 parent 32ce9c9 commit a07da29
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-aggregator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Build aggregator

on:
push:
branches: [ master, main ]
branches: [ master ]
paths: ['aggregator/**']
pull_request:
branches: [ master, main ]
branches: [ master ]
paths: ['aggregator/**']

jobs:
build:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/build-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Build frontend

on:
push:
branches: [ master, main ]
branches: [ master ]
paths: ['frontend/**']
pull_request:
branches: [ master, main ]
branches: [ master ]
paths: ['frontend/**']

jobs:
build:
Expand All @@ -25,6 +27,10 @@ jobs:
working-directory: frontend/
run: npm run build

publish:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/build-kafka-connect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build Kafka connect

on:
push:
branches: [ master ]
paths: ['kafka-connect/**']

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: kafka-connect/
push: true
tags: spoud/kafka-cost-control-connect:latest
5 changes: 3 additions & 2 deletions .github/workflows/ghpages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: GitHub Pages Publish

on:
push:
branches: [ master, main ]
branches: [ master ]
pull_request:
branches: [ master, main ]
branches: [ master ]

jobs:
build:
Expand All @@ -19,3 +19,4 @@ jobs:
pdf_build: true
asciidoctor_params: -r asciidoctor-diagram
source_dir: docs/ # default is .
post_build: 'find . -name "*.png" -name "*.svg" | xargs git add -f'

0 comments on commit a07da29

Please sign in to comment.