diff --git a/.github/workflows/containers.yaml b/.github/workflows/containers.yaml index d792b86..c82c6aa 100644 --- a/.github/workflows/containers.yaml +++ b/.github/workflows/containers.yaml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/Dockerfile.bookworm-go b/Dockerfile.bookworm-go new file mode 100644 index 0000000..aefa22c --- /dev/null +++ b/Dockerfile.bookworm-go @@ -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