-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (44 loc) · 1.31 KB
/
publish.yaml
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
41
42
43
44
45
46
name: CaraML Store Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# This is required because our versioning strategy depends on parent tags
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: 'ghcr.io'
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build gRPC service images
uses: gradle/gradle-build-action@v2
env:
DOCKER_REGISTRY: ghcr.io/${{ github.repository_owner }}
with:
arguments: jib
- name: Build Spark application image
uses: gradle/gradle-build-action@v2
env:
DOCKER_REGISTRY: ghcr.io/${{ github.repository_owner }}
with:
arguments: caraml-store-spark:docker
- name: Push Spark application image
uses: gradle/gradle-build-action@v2
env:
DOCKER_REGISTRY: ghcr.io/${{ github.repository_owner }}
with:
arguments: caraml-store-spark:dockerPush