Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/use latest lts #38

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Get Latest Ubuntu LTS Version and Code Name
run: |
ubuntu_version=$(curl -s https://endoflife.date/ubuntu | awk '/LTS/ {print $1; exit}')
ubuntu_codename=$(curl -s https://endoflife.date/ubuntu | awk '/LTS/ {print tolower($2); exit}' | sed s/\'//)
echo "Latest Ubuntu LTS Version: $ubuntu_version"
echo "Latest Ubuntu LTS Code Name: $ubuntu_codename"
echo "ubuntu_version=$ubuntu_version" >> "$GITHUB_ENV"
echo "ubuntu_codename=$ubuntu_codename" >> "$GITHUB_ENV"
-
name: Checkout
uses: actions/checkout@v2
Expand All @@ -30,9 +39,6 @@ jobs:
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
env:
ubuntu_codename: focal
ubuntu_version: 20.04
with:
build-args: |
TAG=${{ env.ubuntu_codename }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Get Latest Ubuntu LTS Code Name
run: |
ubuntu_codename=$(curl -s https://endoflife.date/ubuntu | awk '/LTS/ {print tolower($2); exit}' | sed s/\'//)
echo "Latest Ubuntu LTS Code Name: $ubuntu_codename"
echo "ubuntu_codename=$ubuntu_codename" >> "$GITHUB_ENV"
-
name: Checkout
uses: actions/checkout@v2
Expand All @@ -22,8 +28,6 @@ jobs:
name: Build
id: docker_build
uses: docker/build-push-action@v2
env:
ubuntu_codename: focal
with:
build-args: |
TAG=${{ env.ubuntu_codename }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG TAG=latest
FROM ubuntu:$TAG as builder

RUN sed -i -E 's/^# deb-src /deb-src /g' /etc/apt/sources.list \
RUN sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources \
&& apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
build-essential \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Docker image with RDP server using [xrdp](http://xrdp.org) on Ubuntu with [XFCE](https://xfce.org).

Images are built weekly using the Ubuntu Docker image with the 'latest' tag.
Images are built weekly using the latest LTS version of the Ubuntu Docker image as its base.

## Running manually with `docker` commands

Expand Down
Loading