Skip to content

return id in body

return id in body #31

Workflow file for this run

name: deploy chat-dancer to docker hub
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up JDK 1.17
uses: actions/setup-java@v3
with:
java-version: 17.0.4+1
distribution: zulu
- name: Build the project with Maven
run: ./mvnw --batch-mode -update-snapshots package
- name: Login to the Docker registry
run: docker login --username ${{ secrets.DOCKER_HUB_USER }} --password ${{ secrets.DOCKER_HUB_PASS }}
- name: Build the Docker image
run: docker build -t dancier/chat-dancer:$(git rev-parse --short "$GITHUB_SHA") -t dancier/chat-dancer:latest .
- name: Publish the Docker image on hub.docker.com
run: docker push -a dancier/chat-dancer