diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 8d0ad36..2591f9e 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -27,18 +27,18 @@ jobs: run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - name: Build Docker Image - run: docker build -t yh0872/springboot-example . + run: docker build -t yh0872/signal . - name: Publish Image to Docker Hub - run: docker push yh0872/springboot-example:latest + run: docker push yh0872/signal:latest deploy: needs: build runs-on: [aws-ec2] steps: - name: Pull Image from docker hub - run: sudo docker pull yh0872/springboot-example:latest + run: sudo docker pull yh0872/signal:latest - name: Delete old container - run: sudo docker rm -f springboot-example-container + run: sudo docker rm -f signal-container - name: Run docker container - run: sudo docker run -d -p 8080:8080 --name springboot-example-container yh0872/springboot-example \ No newline at end of file + run: sudo docker run -d -p 8080:8080 --name signal-container yh0872/signal diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 8ca4544..cbd13d6 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,6 @@ spring: datasource: - url: jdbc:mysql://192.249.29.26:3306/sign + url: jdbc:mysql://192.249.29.56:3306/sign username: testuser password: rj7783208232 jpa: