Skip to content

Commit

Permalink
Merge pull request #176 from DeployGate/chore/fix_release_script
Browse files Browse the repository at this point in the history
Launch the app mock server in the release workflow
  • Loading branch information
jmatsu authored Mar 20, 2023
2 parents 75cdac9 + e5a35be commit 47577ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ on:
jobs:
production-release:
runs-on: ubuntu-latest
services:
app:
image: ghcr.io/deploygate/gradle-plugin-mock-server
ports:
- 3000/tcp
options: >-
--health-cmd "curl -fI http://localhost:3000"
--health-interval 15s
--health-timeout 5s
--health-retries 5
--health-start-period 20s
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -32,6 +43,7 @@ jobs:
- name: Publish artifacts
run: ./release.sh
env:
TEST_SERVER_URL: http://localhost:${{ job.services.app.ports[3000] }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
- name: Slack Notification
Expand Down

0 comments on commit 47577ab

Please sign in to comment.