Skip to content

nomad 디플로이 테스트 5 #5

nomad 디플로이 테스트 5

nomad 디플로이 테스트 5 #5

Workflow file for this run

name: Anissia Core Nomad Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup `nomad-pack`
uses: hashicorp/setup-nomad-pack@main
id: setup
with:
version: 1.8.1
- name: Build and package Spring Boot application with Gradle
run: |
./gradlew clean build
- name: Deploy to Nomad
env:
NOMAD_ADDR: ${{ secrets.NOMAD_ADDR }}
NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }}
run: |
nomad job run anissia-core.nomad