Skip to content

Commit

Permalink
Use postgres in release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ThoreKr committed Aug 6, 2021
1 parent 42bdf03 commit adf92c5
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/release_rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ jobs:
name: Create Pre-Release
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
postgres:
image: postgres:13
ports:
- 3306:3306
- 5432:5432
env:
MYSQL_USER: reqbaz
MYSQL_PASSWORD: password
MYSQL_DATABASE: reqbaz
MYSQL_ROOT_PASSWORD: rootpw
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
POSTGRES_USER: reqbaz
POSTGRES_PASSWORD: reqbaz
POSTGRES_DB: reqbaz
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
Expand All @@ -32,11 +35,6 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 14
- name: Verify MySQL connection
run: |
while ! mysqladmin ping -h"127.0.0.1" -P"3306" --silent; do
sleep 1
done
- name: Build release bundle with Gradle
run: ./gradlew packageDistribution -x test #-Pservice.version=${{ steps.get_version.outputs.version-without-v }}
- name: Create Release
Expand Down

0 comments on commit adf92c5

Please sign in to comment.