Skip to content

Commit

Permalink
ci: bump Ubuntu versions for container workflows
Browse files Browse the repository at this point in the history
A test that will be added in a latter commit requires systemd-run --wait,
which is not available on Ubuntu 16.04.

DEBIAN_FRONTEND=noninteractive prevents hang on "Setting up tzdata"
that became a problem on Ubuntu 20.04 (though something similar
could happen on any Debian/Ubuntu version).
  • Loading branch information
WGH- committed Nov 7, 2022
1 parent 09b205d commit fe8fac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
baseimage: ['debian:stretch', 'ubuntu:16.04', 'ubuntu:18.04']
baseimage: ['debian:stretch', 'ubuntu:18.04', 'ubuntu:20.04']
steps:
- run: sudo apt-get -qq update
- name: Install libsystemd-dev
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Pull base image - ${{ matrix.baseimage }}
run: docker pull ${{ matrix.baseimage }}
- name: Install packages for ${{ matrix.baseimage }}
run: docker run --privileged -e GOPATH=${GOPATH} --cidfile=/tmp/cidfile ${{ matrix.baseimage }} /bin/bash -c "apt-get update && apt-get install -y sudo build-essential git golang dbus libsystemd-dev libpam-systemd systemd-container"
run: docker run --privileged -e GOPATH=${GOPATH} --cidfile=/tmp/cidfile ${{ matrix.baseimage }} /bin/bash -c "export DEBIAN_FRONTEND=noninteractive; apt-get update && apt-get install -y sudo build-essential git golang dbus libsystemd-dev libpam-systemd systemd-container"
- name: Persist base container
run: docker commit `cat /tmp/cidfile` go-systemd/container-tests
- run: rm -f /tmp/cidfile
Expand Down

0 comments on commit fe8fac5

Please sign in to comment.