Skip to content

Commit

Permalink
Build for both Debian and Alpine.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed May 24, 2024
1 parent 53479aa commit e863b6a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,43 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker Metadata
id: meta
- name: Build Docker Metadata (Debian)
id: meta_debian
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/azuracast/icecast-kh-ac
tags: |
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=raw,value=latest-debian,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=tag
- name: Publish to Docker Hub
- name: Publish to Docker Hub (Debian)
uses: depot/build-push-action@v1
with:
context: .
file: Dockerfile.debian
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta_debian.outputs.tags }}
labels: ${{ steps.meta_debian.outputs.labels }}

- name: Build Docker Metadata (Alpine)
id: meta_alpine
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/azuracast/icecast-kh-ac
tags: |
type=raw,value=latest-alpine,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=tag,suffix=-alpine
- name: Publish to Docker Hub (Alpine)
uses: depot/build-push-action@v1
with:
context: .
file: Dockerfile.alpine
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta_alpine.outputs.tags }}
labels: ${{ steps.meta_alpine.outputs.labels }}
16 changes: 16 additions & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM alpine:3.20

RUN apk add --no-cache curl git ca-certificates \
alpine-sdk libxml2-dev libxslt-dev libvorbis-dev openssl-dev curl-dev

RUN mkdir -p /tmp/icecast_build \
&& cd /tmp/icecast_build \
&& curl -fsSL https://github.com/karlheyes/icecast-kh/archive/refs/tags/icecast-2.4.0-kh22.tar.gz -o icecast.tar.gz \
&& tar -xvzf icecast.tar.gz --strip-components=1 \
&& ./configure \
&& make \
&& make install \
&& cd /tmp \
&& rm -rf /tmp/icecast_build

COPY ./web /usr/local/share/icecast/web
File renamed without changes.

0 comments on commit e863b6a

Please sign in to comment.