Skip to content

Commit

Permalink
Ajusta yaml do github
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelnisgoski committed May 6, 2024
1 parent 68af7f3 commit 21994f3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ jobs:
build-job:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v3

- name: Build Docker Image
- run: |
docker build -t ${{ secrets.DOCKER_USER }}/flask-build:latest
docker login -u ${{ secrets.DOCKER_USER}} -p ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -23,20 +20,13 @@ jobs:
sast-test-job:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v3

- name: Install dependencies
- run: |
pip install -r requirements.txt
pip install bandit
- name: Run Bandit test
- run: |
echo "Rodando teste Bandit!"
bandit -r app.py -f json -o bandit-outpus.json || true
- name: Upload Bandit report
- uses: actions/upload-artifact@v3
with:
name: bandit-report
Expand All @@ -45,10 +35,7 @@ jobs:
deploy-job:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v3

- name: Deploy
- run: |
echo "Iniciando deploy..."
docker pull ${{ secrets.DOCKER_USER }}/flask-build:latest

0 comments on commit 21994f3

Please sign in to comment.