Skip to content

Commit

Permalink
Add trivy testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Paulic committed Sep 20, 2024
1 parent 0e2fdec commit ce9943a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/reusable-workflow-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,18 @@ jobs:
password: ${{ secrets.ACR_PASSWORD }}

- name: Build Docker Image
run: docker build -t $REGISTRY/$IMAGE_NAME:$IMAGE_TAG $DOCKER_DIR
run: |
echo "Building image: $REGISTRY/$IMAGE_NAME:$IMAGE_TAG"
docker build -t $REGISTRY/$IMAGE_NAME:$IMAGE_TAG $DOCKER_DIR

- name: Push Docker image
run: |
docker push $REGISTRY/$IMAGE_NAME:$IMAGE_TAG
- name: Check image
run: |
trivy image $REGISTRY/$IMAGE_NAME:$IMAGE_TAG
- name: Tag and push Docker image as latest
# if: github.ref == 'refs/heads/main' # TODO: uncomment once we are done with development
run: |
Expand Down
2 changes: 1 addition & 1 deletion user/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM ubuntu:22.04
FROM ubuntu:rolling

RUN echo "Hello World!"

0 comments on commit ce9943a

Please sign in to comment.