Skip to content

Commit 16e565a

Browse files
committed
Add ci pipeline for log branch dedup docker build
1 parent 200a1c0 commit 16e565a

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Push event-logs-dedup to image repository
2+
3+
permissions:
4+
contents: read
5+
packages: write
6+
7+
on:
8+
push:
9+
branches:
10+
- 'feature/tick-dedup'
11+
12+
jobs:
13+
build-and-push:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '21'
23+
distribution: 'temurin'
24+
cache: maven
25+
26+
- name: Build module (skip tests)
27+
run: mvn -B -pl event-logs-dedup -am -DskipTests package
28+
29+
- name: Log in to GitHub Container Registry
30+
uses: docker/login-action@v3
31+
with:
32+
registry: ghcr.io
33+
username: ${{ github.actor }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Set Release version env variable
37+
run: |
38+
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
39+
40+
- name: Build and push Docker image
41+
uses: docker/build-push-action@v5
42+
with:
43+
context: ./event-logs-dedup
44+
file: ./event-logs-dedup/Dockerfile
45+
push: true
46+
tags: ghcr.io/qubic/event-logs-dedup:${{ env.RELEASE_VERSION }}
47+

0 commit comments

Comments
 (0)