Skip to content

Commit

Permalink
Renamed docker-compose to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
TrafeX committed Aug 13, 2024
1 parent b6d2907 commit ff7ef50
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Test & build Docker image

on:
push:
branches: [ master ]
tags: ['*']
branches: [master]
tags: ["*"]
pull_request:
schedule:
- cron: '0 2 * * 6'
- cron: "0 2 * * 6"

env:
IMAGE_NAME: trafex/php-nginx
Expand Down Expand Up @@ -34,23 +34,23 @@ jobs:
- name: Smoke test image
run: |-
docker-compose -f docker-compose.test.yml up -d app
docker compose -f docker-compose.test.yml up -d app
sleep 2
docker-compose -f docker-compose.test.yml run sut
docker compose -f docker-compose.test.yml run sut
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: '${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}'
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
image-ref: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}"
format: "template"
template: "@/contrib/sarif.tpl"
output: "trivy-results.sarif"

- name: Upload Trivy scan results to GitHub Security tab
if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
sarif_file: "trivy-results.sarif"

- name: Login to Docker Hub
if: (github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule' )) || contains(github.ref, 'refs/tags/')
Expand Down

0 comments on commit ff7ef50

Please sign in to comment.