Skip to content

Commit

Permalink
Añadidas variables de entorno
Browse files Browse the repository at this point in the history
  • Loading branch information
uo277931 committed Apr 1, 2022
1 parent fc424bb commit e9a846b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/asw2122.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
API_URI: http://${{ secrets.DEPLOY_HOST }}:5000/api
runs-on: ubuntu-latest
# needs: [e2e-tests]
needs: [unit-test-webapp, unit-test-restapi]
steps:
- uses: actions/checkout@v2
- name: Publish to Registry
Expand All @@ -59,10 +60,16 @@ jobs:
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
registry: ghcr.io
workdir: webapp
buildargs: API_URI
docker-push-restapi:
name: Push restapi Docker Image to GitHub Packages
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
CLOUDINARY_URL: ${{ secrets.CLOUDINARY_URL }}
SECRET: ${{ secrets.SECRET }}
# needs: [e2e-tests]
needs: [unit-test-webapp, unit-test-restapi]
steps:
- uses: actions/checkout@v2
- name: Publish to Registry
Expand All @@ -73,6 +80,7 @@ jobs:
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
registry: ghcr.io
workdir: restapi
buildargs: DATABASE_URL, CLOUDINARY_URL, SECRET
deploy:
name: Deploy over SSH
runs-on: ubuntu-latest
Expand Down

0 comments on commit e9a846b

Please sign in to comment.