Skip to content

Commit

Permalink
github actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
airoca committed Jan 22, 2024
1 parent 9e6bf91 commit 63a2ba0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ jobs:

deploy:
needs: build
runs-on: [aws-ec2]
runs-on: [ aws-ec2 ]
steps:
- name: Pull Image from Docker Hub
- name: Pull Image from docker hub
run: docker pull yh0872/springboot-example:latest

- name: Delete Old Container
run: docker rm -f springboot-example-container || true

- name: Run Docker Container
- name: Delete old container
run: docker rm -f springboot-example-container
- name: Run docker container
run: docker run -d -p 8080:8080 --name springboot-example-container yh0872/springboot-example

0 comments on commit 63a2ba0

Please sign in to comment.