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 857c8fd commit 8648199
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker Image
run: docker build -t integrationninjas/springboot-example .
run: docker build -t madurad/springboot-example .

- name: Publish Image to Docker Hub
run: docker push integrationninjas/springboot-example:latest
run: docker push madurad/springboot-example:latest

deploy:
needs: build
runs-on: ip-172-31-8-60
steps:
- name: Pull Image from Docker Hub
run: docker pull integrationninjas/springboot-example:latest
run: docker pull madurad/springboot-example:latest

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

- name: Run Docker Container
run: docker run -d -p 8080:8080 --name springboot-example-container integrationninjas/springboot-example
run: docker run -d -p 8080:8080 --name springboot-example-container madurad/springboot-example

0 comments on commit 8648199

Please sign in to comment.