Skip to content

Commit

Permalink
Build for all supported Ubuntu releases
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Oct 1, 2024
1 parent 5c58f7c commit 2668972
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
jobs:
build_push_images:
runs-on: ubuntu-latest
strategy:
matrix:
# curl https://api.launchpad.net/devel/ubuntu/series | jq '.entries[] | select(.supported == true and .active == true) | .version' | tr '\n' ' ' | sed -e 's/^/[/' -e 's/ $/]/' -e 's/ /, /g'
# The above command actually grabs Ubuntu ESM-supported releases too, but the Launchpad API doesn't give a way to differentiate these out so who cares
version: ["24.04", "22.04", "20.04", "18.04", "16.04", "14.04"]
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
Expand All @@ -30,4 +35,4 @@ jobs:

- name: Build and push container images
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: ./build-and-push.sh 24.04
run: ./build-and-push.sh ${{ matrix.version }}

0 comments on commit 2668972

Please sign in to comment.