-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.06 KB
/
dive-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: dive-analysis
env:
DOCKER_IMAGE_NAME: paniclobster/devcontainer-base
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
dive-analysis:
runs-on: ubuntu-latest
strategy:
matrix:
variant:
- alpine
- debian
steps:
- name: Checkout source code
uses: actions/checkout@v2.3.4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build the Docker image
uses: docker/build-push-action@v2.2.0
with:
context: ${{ matrix.variant }}
load: true
push: false
tags: ${{ env.DOCKER_IMAGE_NAME }}:latest
- name: Install dive
run: |
curl --silent https://api.github.com/repos/wagoodman/dive/releases | grep browser_download | grep linux | cut -d '"' -f 4 | grep -e /dive_.*\.deb | sort | tail -n 1 | xargs curl --location --output dive.deb --silent
sudo apt install ./dive.deb
- name: Perform dive analysis
run: dive ${{ env.DOCKER_IMAGE_NAME }}:latest