Skip to content

Commit

Permalink
add debian to docker image resolve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwareus committed Oct 30, 2023
1 parent b4e7e19 commit e60e3e8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,25 @@ jobs:
docker-resolve:
name: Docker E2E Resolve
runs-on: ubuntu-latest
strategy:
matrix:
docker-os: ['alpine', 'debian']
steps:
- uses: actions/checkout@v3

- name: Pull Image to cache from
run: docker pull debricked/cli:latest-resolution || true
# Pull from debian and re-tag to match cache
- name: Pull Image; Debian
if: ${{ matrix.docker-os == 'debian' }}
run: |
docker pull debricked/cli:latest-resolution-debian || true
docker tag debricked/cli:latest-resolution-debian debricked/cli:latest-resolution
- name: Pull Image; Alpine
if: ${{ matrix.docker-os == 'alpine' }}
run: docker pull debricked/cli:latest-resolution || true

- name: Build Docker image
run: docker build -f build/docker/alpine.Dockerfile -t debricked/cli:resolution-test --cache-from debricked/cli:latest-resolution --target resolution .
run: docker build -f build/docker/${{ matrix.docker-os }}.Dockerfile -t debricked/cli:resolution-test --cache-from debricked/cli:latest-resolution --target resolution .

- name: Resolve with Docker
run: docker run -v $(pwd):/root debricked/cli:resolution-test debricked resolve test/resolve
Expand Down
2 changes: 1 addition & 1 deletion build/docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN apk --no-cache --update add \
nodejs \
yarn \
dotnet7-sdk \
gcc
g++

RUN dotnet --version

Expand Down
8 changes: 0 additions & 8 deletions test/resolve/testdata/pip/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
pandas==1.5.1
numpy==1.24.2
pip==22.0.4
python-dateutil==2.8.2
pytz==2022.7.1
setuptools==58.1.0
six==1.16.0
certifi==2023.7.22
# comment

0 comments on commit e60e3e8

Please sign in to comment.