Skip to content

Commit

Permalink
Merge pull request #83 from choria-io/bookworm
Browse files Browse the repository at this point in the history
Create bookworm packager
  • Loading branch information
ripienaar authored Mar 7, 2024
2 parents 7357349 + a7c6486 commit 34ecf5d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,25 @@ env:
TAG: "1.21"

jobs:
bookworm_go:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
file: Dockerfile.bookworm-go
go: ${{ env.GO_VERSION }}
tag: bookworm-go${{ env.TAG }}
hub_user: ${{ secrets.REGISTRY_RELEASE_USERNAME }}
hub_password: ${{ secrets.REGISTRY_RELEASE_PASSWORD }}

bullseye_go:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -28,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -45,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -59,7 +73,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -73,7 +87,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -87,7 +101,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -101,7 +115,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -115,7 +129,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -129,7 +143,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand All @@ -144,7 +158,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
Expand Down
34 changes: 34 additions & 0 deletions Dockerfile.bookworm-go
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM debian:bookworm

ARG GOVERSION="1.21.8"
RUN echo -n bookworm_64 > /etc/packager.txt

RUN apt-get update && apt-get install -y \
dpkg-dev \
wget \
ruby \
rake \
debhelper \
git \
msitools \
wixl

RUN wget -q https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GOVERSION}.linux-amd64.tar.gz && \
rm -f go${GOVERSION}.linux-amd64.tar.gz

WORKDIR /build/source

VOLUME /go
VOLUME /build/artifacts

ENV RUBYLIB /packager/lib
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
ENV GOPATH /go
ENV GO111MODULE on

COPY lib /packager/lib/
COPY bin /packager/bin/
COPY install-choria.sh /bin

CMD /packager/bin/packager.rb

0 comments on commit 34ecf5d

Please sign in to comment.