Skip to content

Commit

Permalink
[CLIENT-1837] CI/CD: Use dev-stage-master pipeline (#522)
Browse files Browse the repository at this point in the history
- Lock all operating system versions
- Remove Alpine Linux build script
- Add option to disable macOS x86 testing since it is unstable
- Make valgrind take in a boolean for the use-server-rc input
- Fix invalid version format
- Use variable for JFrog repo name in case we need to change it later
  • Loading branch information
juliannguyen4 committed Feb 15, 2024
1 parent 88b4fb1 commit 611bdb6
Show file tree
Hide file tree
Showing 25 changed files with 1,309 additions and 563 deletions.
37 changes: 37 additions & 0 deletions .github/actions/run-ee-server-for-ext-container/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'Run EE server for another Docker container'
description: 'Run EE server and configure tests to connect to it from another Docker container'
inputs:
# All inputs in composite actions are strings
use-server-rc:
required: true
default: false
server-tag:
required: true
default: 'latest'
# Github Composite Actions can't access secrets
# so we need to pass them in as inputs
docker-hub-username:
required: false
docker-hub-password:
required: false

runs:
using: "composite"
steps:
- name: Run EE server
uses: ./.github/actions/run-ee-server
with:
use-server-rc: ${{ inputs.use-server-rc }}
server-tag: ${{ inputs.server-tag }}
docker-hub-username: ${{ inputs.docker-hub-username }}
docker-hub-password: ${{ inputs.docker-hub-password }}

- name: Get IP address of Docker container hosting server
id: get-server-ip-address
run: echo server-ip=$(docker container inspect -f '{{ .NetworkSettings.IPAddress }}' aerospike) >> $GITHUB_OUTPUT
shell: bash

- name: Configure tests to connect to that Docker container
run: crudini --existing=param --set config.conf enterprise-edition hosts ${{ steps.get-server-ip-address.outputs.server-ip }}:3000
working-directory: test
shell: bash
15 changes: 8 additions & 7 deletions .github/actions/run-ee-server/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: 'Run EE Server'
description: 'Run EE server'
inputs:
# All inputs in composite actions are strings
use-server-rc:
required: true
default: false
Expand All @@ -11,23 +12,23 @@ inputs:
# so we need to pass them in as inputs
docker-hub-username:
required: false
type: string
docker-hub-password:
required: false
type: string

runs:
using: "composite"
steps:
- name: Install crudini to manipulate config.conf
run: python3 -m pip install crudini==0.9.4
run: pip3 install crudini -c requirements.txt
working-directory: .github/workflows
shell: bash

- name: Add enterprise edition config to config.conf
- name: Use enterprise edition instead of community edition in config.conf
run: |
python3 -m crudini --set config.conf enterprise-edition hosts 127.0.0.1:3000
python3 -m crudini --set config.conf enterprise-edition user superuser
python3 -m crudini --set config.conf enterprise-edition password superuser
crudini --existing=param --set config.conf enterprise-edition hosts ''
crudini --existing=param --set config.conf enterprise-edition hosts 127.0.0.1:3000
crudini --existing=param --set config.conf enterprise-edition user superuser
crudini --existing=param --set config.conf enterprise-edition password superuser
working-directory: test
shell: bash

Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/build-alpine.sh

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/build-rpm-based.sh

This file was deleted.

0 comments on commit 611bdb6

Please sign in to comment.