Skip to content

Commit 47577ab

Browse files
authored
Merge pull request #176 from DeployGate/chore/fix_release_script
Launch the app mock server in the release workflow
2 parents 75cdac9 + e5a35be commit 47577ab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

+12
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ on:
99
jobs:
1010
production-release:
1111
runs-on: ubuntu-latest
12+
services:
13+
app:
14+
image: ghcr.io/deploygate/gradle-plugin-mock-server
15+
ports:
16+
- 3000/tcp
17+
options: >-
18+
--health-cmd "curl -fI http://localhost:3000"
19+
--health-interval 15s
20+
--health-timeout 5s
21+
--health-retries 5
22+
--health-start-period 20s
1223
steps:
1324
- uses: actions/checkout@v3
1425
with:
@@ -32,6 +43,7 @@ jobs:
3243
- name: Publish artifacts
3344
run: ./release.sh
3445
env:
46+
TEST_SERVER_URL: http://localhost:${{ job.services.app.ports[3000] }}
3547
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SECRET_KEY }}
3648
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
3749
- name: Slack Notification

0 commit comments

Comments
 (0)