Skip to content

Commit

Permalink
nomad 디플로이 테스트 11
Browse files Browse the repository at this point in the history
  • Loading branch information
ac-saro committed Jun 29, 2024
1 parent 3dc3bb2 commit 6731d61
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/nomad-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,29 @@ jobs:
run: |
./gradlew clean build
- name: Setup `nomad`
uses: hashicorp/setup-nomad@main
- name: Setup `nomad-pack`
uses: hashicorp/setup-nomad-pack@main
id: setup

- name: Deploy to Nomad
- name: Run `nomad-pack info` for `.`
id: info
run: "nomad-pack render ."

- name: Run `nomad-pack run` for `.`
id: run
run: "nomad-pack run ."
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
#
# - name: Setup `nomad`
# uses: hashicorp/setup-nomad@main
# id: setup
#
# - name: Deploy to Nomad
# env:
# NOMAD_ADDR: ${{ secrets.NOMAD_ADDR }}
# NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }}
# run: |
# nomad job run anissia-core.nomad

0 comments on commit 6731d61

Please sign in to comment.