-
Notifications
You must be signed in to change notification settings - Fork 219
47 lines (35 loc) · 1.71 KB
/
build-proxy.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
41
42
43
44
45
46
47
name: Build and upload proxy client to JFrog
on:
pull_request:
push:
branches:
- stage
# TODO: snapshots_private has been removed from base parent pom.xml. Need to add workflow code to write snapshots_private to local pipeline pom.xml (this workflow will not work until that is done)
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout Java client
uses: actions/checkout@v4
- name: Set up settings.xml for Maven
uses: s4u/[email protected]
with:
servers: '[{"id": "snapshots_private", "username": "${{ secrets.JFROG_USERNAME }}", "password": "${{ secrets.JFROG_MAVEN_TOKEN }}"}]'
- name: Build Java client
run: mvn install
- name: Run Aerospike server
run: docker run -d --name aerospike-server -p 3000:3000 aerospike/aerospike-server
- run: docker login aerospike.jfrog.io --username ${{ secrets.JFROG_USERNAME }} --password ${{ secrets.JFROG_DOCKER_TOKEN }}
# TODO: change to use "latest" tag
- name: Get all tags for proxy server Docker image
run: docker pull --all-tags aerospike.jfrog.io/docker/aerospike/aerospike-proxy-private
- name: Get the latest tag for proxy server
run: echo LATEST_TAG=$(docker images aerospike.jfrog.io/docker/aerospike/aerospike-proxy-private --format json | jq -r '.Tag' | head -n 1) >> $GITHUB_ENV
# Enables pipefail
shell: bash
- name: Run Aerospike Proxy on latest tag
run: docker run -d --name aerospike-proxy -p 4000:4000 aerospike.jfrog.io/docker/aerospike/aerospike-proxy-private:${{ env.LATEST_TAG }}
- name: Run tests
run: mvn test -Dtest=com.aerospike.proxy.tests.ProxyTests
# - name: Upload to JFrog
# run: mvn deploy