Skip to content

Commit

Permalink
baseimage
Browse files Browse the repository at this point in the history
  • Loading branch information
n1koo committed May 11, 2024
1 parent dd39335 commit b80aee1
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/build-images-from-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,11 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
if: matrix.service != 'dashboards'
Expand All @@ -93,16 +90,11 @@ jobs:
VERSION=${{ needs.base.outputs.branch }}
push: true
context: .
tags: 'opencrvs/ocrvs-${{ matrix.service }}:${{ needs.base.outputs.version }}'
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Checkout code
uses: actions/checkout@v4
with:
sparse-checkout: |
trivy.yaml
.trivyignore.yaml
sparse-checkout-cone-mode: false
tags: |
'opencrvs/ocrvs-${{ matrix.service }}:${{ needs.base.outputs.version }}'
'opencrvs/ocrvs-${{ matrix.service }}:${{ needs.base.outputs.branch }}'
cache-from: type=registry,ref=opencrvs/ocrvs-${{ matrix.service }}:${{ needs.base.outputs.branch }}
cache-to: type=inline
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
if: matrix.service != 'dashboards'
Expand Down

0 comments on commit b80aee1

Please sign in to comment.