Skip to content

Commit

Permalink
Get latest tag without latest
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Jul 11, 2024
1 parent 4cb8aee commit ea97caf
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,18 @@ jobs:

- run: docker login aerospike.jfrog.io --username ${{ secrets.JFROG_USERNAME }} --password ${{ secrets.JFROG_DOCKER_TOKEN }}

- name: Run Aerospike Proxy
run: docker run -d --name aerospike-proxy-4000 -p 4000:4000 aerospike.jfrog.io/docker/aerospike-proxy-private
# 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-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-proxy-private:${{ env.LATEST_TAG }}

- name: Run tests
run: mvn test -Dtest=com.aerospike.proxy.tests.ProxyTests
Expand Down

0 comments on commit ea97caf

Please sign in to comment.