Skip to content

Commit a95c8a3

Browse files
authored
Merge pull request #4 from ptr727/develop
Manual run, auto platform version
2 parents 1547fad + 8601b9b commit a95c8a3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/BuildPublishPipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ env:
55
DOCKER_PUSH: ${{ github.ref == 'refs/heads/main' }}
66

77
on:
8+
workflow_dispatch:
89
push:
910
branches:
1011
- main

Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,19 @@ ENV DOTNET_RUNNING_IN_CONTAINER=true \
1919
DEBIAN_FRONTEND=noninteractive
2020

2121
RUN apt-get update \
22-
# Install wget
23-
&& apt-get install -y wget \
24-
# Register the Microsoft repository, make sure it matches the platform
25-
&& wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
22+
# Install pre-requisites
23+
&& apt-get install -y wget apt-transport-https software-properties-common \
24+
# Register the Microsoft repository
25+
&& wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -sr)/packages-microsoft-prod.deb \
2626
&& dpkg -i packages-microsoft-prod.deb \
27+
# Enable universe repositories
28+
&& sudo add-apt-repository universe \
29+
# Update
2730
&& apt-get update \
31+
&& apt-get upgrade -y \
2832
# Install .NET SDK and PowerShell
2933
# https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
34+
# https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux
3035
&& apt-get install -y ${INSTALL_VERSION} powershell \
3136
&& apt-get clean \
3237
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)