Skip to content

Commit

Permalink
Merge pull request #11 from projeto-reciclagem/dev
Browse files Browse the repository at this point in the history
CD EC2
  • Loading branch information
Nilton-Gabriel authored May 29, 2024
2 parents 55e9109 + cf430fd commit 6111c64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ jobs:
- name: Pull Docker image
run: docker pull niltongabriel/ecosystem-api:latest

- name: Romeve old DOcker Container
- name: Stop old Docker Container
run: docker stop ecosystem-api || true

- name: Remove old Docker Container
run: docker rm ecosystem-api || true

- name: Run Docker container
run: docker run --name ecosystem-api -d -p 8080:8080 niltongabriel/ecosystem-api:latest
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Ecosystem API CI

on:
on: #Executa o CI quando um pull request é aberto ou reaberto
pull_request:
branches:
- main
Expand Down

0 comments on commit 6111c64

Please sign in to comment.