generated from Arquisoft/dede_0
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
añadidos variables de entorno de secrets
arreglado cors Quitado .env Action paralelo y mas env Arreglos secrets
- Loading branch information
1 parent
70fdddb
commit 05e5612
Showing
4 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,11 @@ jobs: | |
- uses: codecov/codecov-action@v2 | ||
unit-test-restapi: | ||
runs-on: ubuntu-latest | ||
env: | ||
MONGO_DB_URI: ${{ secrets.MONGO_DB_URI }} | ||
SECRET_SALT: ${{ secrets.SECRET_SALT }} | ||
SECRET: ${{ secrets.SECRET }} | ||
PRUEBA: ${{ secrets.PRUEBA }} | ||
defaults: | ||
run: | ||
working-directory: restapi | ||
|
@@ -28,9 +33,6 @@ jobs: | |
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- run: touch .env | ||
- run: echo "${{ secrets.ENV }}" > .env | ||
- run: cp .env ./tests/.env | ||
- run: npm ci | ||
- run: npm test | ||
- uses: codecov/codecov-action@v2 | ||
|
@@ -49,38 +51,41 @@ jobs: | |
docker-push-webapp: | ||
name: Push webapp Docker Image to GitHub Packages | ||
runs-on: ubuntu-latest | ||
needs: [unit-test-webapp, unit-test-restapi] | ||
needs: [unit-test-webapp] | ||
# needs: [e2e-tests] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Publish to Registry | ||
uses: elgohr/[email protected] | ||
env: | ||
API_URI: http://${{ secrets.DEPLOY_HOST }}:5000 | ||
with: | ||
name: arquisoft/dede_es4b/webapp | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.DOCKER_PUSH_TOKEN }} | ||
registry: ghcr.io | ||
workdir: webapp | ||
buildargs: API_URI | ||
docker-push-restapi: | ||
name: Push restapi Docker Image to GitHub Packages | ||
env: | ||
MONGO_DB_URI: ${{ secrets.MONGO_DB_URI }} | ||
SECRET_SALT: ${{ secrets.SECRET_SALT }} | ||
SECRET: ${{ secrets.SECRET }} | ||
PRUEBA: ${{ secrets.PRUEBA }} | ||
runs-on: ubuntu-latest | ||
needs: [unit-test-webapp, unit-test-restapi] | ||
needs: [unit-test-restapi] | ||
# needs: [e2e-tests] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Publish to Registry | ||
uses: elgohr/[email protected] | ||
env: | ||
DB_URI: ${{ secrets.MONGO_DB_URI }} | ||
PASS_SALT: ${{ secrets.SECRET_SALT }} | ||
PASS: ${{ secrets.SECRET }} | ||
with: | ||
name: arquisoft/dede_es4b/restapi | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.DOCKER_PUSH_TOKEN }} | ||
registry: ghcr.io | ||
workdir: restapi | ||
buildargs: DB_URI, PASS_SALT, PASS | ||
deploy: | ||
name: Deploy over SSH | ||
runs-on: ubuntu-latest | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters