Skip to content

Commit

Permalink
add github ci to build containers
Browse files Browse the repository at this point in the history
  • Loading branch information
ftsell committed Sep 10, 2023
1 parent c324087 commit fa3ba8e
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 115 deletions.
112 changes: 0 additions & 112 deletions .drone.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/build_all_containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build all containers
on:
push:
branches: [ master, github_actions_ci ]
schedule:
- cron: "0 3 * * 1" # every monday

permissions:
contents: read
packages: write

jobs:
build_base_containers:
strategy:
fail-fast: true
matrix:
container:
- base-bullseye
- base-buster
uses: ./.github/workflows/build_single_container.yml
secrets: inherit
with:
container: ${{ matrix.container }}

build_all_containers:
needs: [ build_base_containers ]
strategy:
fail-fast: false
matrix:
container:
- bitpoll
- etherpad
- gitea
- karma
- limesurvey
- nextcloud
- sogo
uses: ./.github/workflows/build_single_container.yml
secrets: inherit
with:
container: ${{ matrix.container }}
46 changes: 46 additions & 0 deletions .github/workflows/build_single_container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: build_single_container
on:
workflow_dispatch:
inputs:
container:
description: Which container to build
type: string
required: true
workflow_call:
inputs:
container:
description: Which container to build
type: string
required: true

permissions:
contents: read
packages: write

jobs:
build_container:
name: build ${{ inputs.container }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup docker buildx
uses: docker/setup-buildx-action@v2

- name: Build container
uses: docker/build-push-action@v4
with:
context: ./${{ inputs.container }}
push: true
tags: ghcr.io/fsinfuhh/${{ inputs.container }}:latest
labels: |
org.opencontainers.image.title=${{ inputs.container }}
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
2 changes: 1 addition & 1 deletion karaoke/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.mafiasi.de/base-bullseye
FROM ghcr.io/fsinfuhh/base-bullseye

RUN apt-get -y --no-install-recommends install g++ wget uwsgi uwsgi-plugin-python3 python3 python3-pip python3-six make python3-psycopg2 python3-ldap3 gettext gcc python3-dev libldap2-dev libsasl2-dev libldap-2.4-2 libsasl2-2

Expand Down
2 changes: 1 addition & 1 deletion limesurvey/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.mafiasi.de/base-bullseye
FROM ghcr.io/fsinfuhh/base-bullseye

RUN apt install -y --no-install-recommends \
wget \
Expand Down
2 changes: 1 addition & 1 deletion sogo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.mafiasi.de/base-bullseye
FROM ghcr.io/fsinfuhh/base-bullseye

ENV UID=2007
ENV VERSION=5.8.2
Expand Down

0 comments on commit fa3ba8e

Please sign in to comment.