-
Notifications
You must be signed in to change notification settings - Fork 48
40 lines (40 loc) · 1.15 KB
/
ext.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Ext
on:
push:
tags: [ "*.*.*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- uses: gradle/[email protected]
- run: ./gradlew -Penv=prod -p ext docker
- run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: docker/login-action@v2
with:
username: neowu
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- uses: docker/build-push-action@v4
with:
context: "build/ext/log-processor/docker"
tags: "neowu/log-processor:${{ env.TAG }}"
push: true
- uses: docker/build-push-action@v4
with:
context: "build/ext/log-collector/docker"
tags: "neowu/log-collector:${{ env.TAG }}"
push: true
- uses: docker/build-push-action@v4
with:
context: "build/ext/monitor/docker"
tags: "neowu/monitor:${{ env.TAG }}"
push: true
- uses: docker/build-push-action@v4
with:
context: "build/ext/log-exporter/docker"
tags: "neowu/log-exporter:${{ env.TAG }}"
push: true