Skip to content

Commit

Permalink
Merge pull request #88 from Trycatch-tv/dev
Browse files Browse the repository at this point in the history
.
  • Loading branch information
judlup authored May 23, 2024
2 parents 9558eec + b825e11 commit 385e610
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Deploy to EC2
on:
push:
branches:
- main
- main # Cambia esto a la rama que desees

jobs:
deploy:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,14 +19,20 @@ jobs:
- name: Build Docker image
run: docker build -t my-app:latest .

- name: Save Docker image to file
run: docker save -o my-app.tar my-app:latest

- name: Upload Docker image as artifact
uses: actions/upload-artifact@v2
with:
name: docker-image
path: |
/home/runner/work/my-repo/my-repo # Ajusta este path al path donde se encuentra tu Dockerfile
docker save -o my-app.tar my-app:latest
path: my-app.tar

deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit 385e610

Please sign in to comment.