-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.23 KB
/
corfu-client-example.yml
File metadata and controls
46 lines (37 loc) · 1.23 KB
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: Cloud Corfu Cleint Build
on: workflow_dispatch
jobs:
corfu-client-docker:
runs-on: ubuntu-latest
env:
PKG_USERNAME: ${{ secrets.pkg_username }}
PUBLISH_TOKEN: ${{ secrets.publish_token }}
steps:
- uses: actions/checkout@v4
- name: Setup BuildX
uses: docker/setup-buildx-action@v3
- name: Login to the Registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USER_NAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build docker image
working-directory: cloud/corfu/corfu-client-example
run: |
./docker-build.sh
docker push corfudb/corfu-client-example:latest