FEAT: dev docker

This commit is contained in:
Gabriel Rosa
2024-08-16 21:59:23 +00:00
parent 9876eab521
commit 5038c7845f
20 changed files with 80 additions and 55 deletions
+5 -16
View File
@@ -6,29 +6,18 @@ on:
jobs:
test:
runs-on: [self-hosted, prd]
runs-on: [self-hosted, prd]
env:
APP_NAME: ${{ github.event.repository.name }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
id: aws
with:
aws-region: us-east-1
- name: Build
env:
APP_NAME: ${{ github.event.repository.name }}
run: |
docker build -t $APP_NAME --target test .
run: docker build -t ${APP_NAME}_teste --target test .
- name: Run Test
env:
ENV: test
APP_NAME: ${{ github.event.repository.name }}
run: |
docker run --rm --entrypoint="npm" $APP_NAME run test
run: docker run ${APP_NAME}_teste
- name: Remove Docker's Trash
if: always()