Skip to content

Commit

Permalink
Build omnibus-ubuntu for Ubuntu noble
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Kuzminskyi committed Jul 20, 2024
1 parent 14fbbc2 commit 07810ce
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will upload a docker image
# to https://hub.docker.com/repository/docker/twindb/omnibus-ubuntu
---
name: Continuous Deployment

on: # yamllint disable-line rule:truthy
push:
branches: ["noble"]
jobs:
push_to_registry:
name: "Push Docker image to Docker Hub"
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

# Credit https://stackoverflow.com/a/58035262
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: "Log in to Docker Hub"
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: "Buld and push the image"
run: |
docker build -t twindb/omnibus-ubuntu:${{ steps.extract_branch.outputs.branch }} .
docker push -t twindb/omnibus-ubuntu:${{ steps.extract_branch.outputs.branch }}
8 changes: 8 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
extends: default

rules:
line-length:
max: 120
level: warning
...
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:jammy
FROM ubuntu:noble
MAINTAINER [email protected]

RUN apt-get update
Expand Down Expand Up @@ -31,7 +31,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
ruby \
ruby-dev \
ruby-bundler \
pkgconf
pkgconf && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN gem install omnibus

Expand Down

0 comments on commit 07810ce

Please sign in to comment.