Skip to content

Commit

Permalink
Test debian image
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgHaj committed Sep 21, 2023
1 parent 3f1827f commit 663b040
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker
on:
push:
branches:
- main
- fix-debian-image
tags:
- 'v*'

Expand All @@ -12,8 +12,8 @@ jobs:
name: 'Push Docker images'
strategy:
matrix:
stage: ['cli', 'scan', 'resolution']
docker-os: ['alpine', 'debian']
stage: ['resolution']
docker-os: ['debian']
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -67,6 +67,6 @@ jobs:
file: build/docker/${{ matrix.docker-os }}.Dockerfile
target: ${{ matrix.stage }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
14 changes: 11 additions & 3 deletions build/docker/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ RUN npm install -g npm@latest
RUN npm install --global yarn


RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb
RUN rm packages-microsoft-prod.deb
RUN apt -y update && apt -y upgrade && apt install -y dotnet-sdk-7.0

# Package manager installs are only supported on the x64 architecture. Other architectures, such as Arm, must install .NET by some other means such as with Snap, an installer script, or through a manual binary installation.
# RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb
# RUN rm packages-microsoft-prod.deb
# RUN apt -y update && apt -y upgrade && apt install -y dotnet-sdk-7.0

RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
RUN chmod +x ./dotnet-install.sh
RUN ./dotnet-install.sh --channel 7.0
ENV DOTNET_ROOT $HOME/.dotnet
ENV PATH $DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH

0 comments on commit 663b040

Please sign in to comment.