Skip to content

Commit

Permalink
nomad 디플로이 테스트 7
Browse files Browse the repository at this point in the history
  • Loading branch information
ac-saro committed Jun 29, 2024
1 parent 75086f5 commit 96e5396
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/nomad-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ jobs:
distribution: 'temurin'
java-version: '21'

- name: Setup nomad-pack
uses: hashicorp/setup-nomad-pack@main
id: setup

- name: Build and package Spring Boot application with Gradle
run: |
./gradlew clean build
- name: Deploy to Nomad
- name: Setup nomad-pack
uses: hashicorp/setup-nomad-pack@main
id: setup

- name: Run `nomad-pack`
id: run
run: "nomad-pack run ./anissia-core.nomad"
env:
NOMAD_ADDR: ${{ secrets.NOMAD_ADDR }}
NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }}
run: |
nomad job run anissia-core.nomad
NOMAD_ADDR: "${{ secrets.NOMAD_ADDR }}"
NOMAD_TOKEN: "${{ secrets.NOMAD_TOKEN }}"
continue-on-error: true

0 comments on commit 96e5396

Please sign in to comment.