Skip to content

Commit

Permalink
feat: first comit
Browse files Browse the repository at this point in the history
  • Loading branch information
santiago-ojv committed Jun 21, 2024
1 parent bd0b367 commit f3b6768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
File renamed without changes.
26 changes: 4 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download doctl
run: |
cd ~
wget https://github.com/digitalocean/doctl/releases/download/v1.104.0/doctl-1.104.0-linux-amd64.tar.gz
- name: Extract doctl binary
run: |
tar xf ~/doctl-1.104.0-linux-amd64.tar.gz
- name: Move doctl to bin directory
run: |
sudo mv ~/doctl /usr/local/bin/doctl
- name: Verify doctl installation
run: doctl version


- uses: jjst/action-digitalocean-deploy-app@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Authenticate with DigitalOcean
env:
DIGITAL_OCEAN_ACCESS_TOKEN: ${{ secrets.DO_API_TOKEN }} # Usa el token de API como secreto
run: |
doctl auth init --access-token $DIGITAL_OCEAN_ACCESS_TOKEN
- name: Deploy to DigitalOcean App Platform
run: |
cd frontend # Ajusta según tu estructura de directorios si es necesario
doctl apps create --spec .do/app.yaml

0 comments on commit f3b6768

Please sign in to comment.