From c80d25474ca9e2c6cb7140a23f293b6460b705fa Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 20 Dec 2024 06:15:35 +0100 Subject: [PATCH] Add cxx-amd64-fedora-41 --- .gitea/workflows/on-push.yaml | 16 ++++++++++++++++ cxx-amd64-fedora-41/Dockerfile | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 cxx-amd64-fedora-41/Dockerfile diff --git a/.gitea/workflows/on-push.yaml b/.gitea/workflows/on-push.yaml index 399ee15..a17d3dc 100644 --- a/.gitea/workflows/on-push.yaml +++ b/.gitea/workflows/on-push.yaml @@ -18,6 +18,22 @@ jobs: run: docker tag code.helloryan.se/infra/buildenv/cxx-amd64-fedora-40:${{ gitea.sha }} code.helloryan.se/infra/buildenv/cxx-amd64-fedora-40:latest - name: Push run: docker push code.helloryan.se/infra/buildenv/cxx-amd64-fedora-40:latest + infra/buildenv/cxx-amd64-fedora-41: + runs-on: linux + container: code.helloryan.se/infra/misc/docker:latest + steps: + - name: Clone repository + uses: actions/checkout@v3 + - name: Login + run: echo ${{ secrets.INFRA_ACCESS_TOKEN }} | docker login -u ${{ gitea.actor }} --password-stdin code.helloryan.se + - name: Build + run: docker buildx build -t code.helloryan.se/infra/buildenv/cxx-amd64-fedora-41:${{ gitea.sha }} cxx-amd64-fedora-41 + - name: Test + run: docker run --rm code.helloryan.se/infra/buildenv/cxx-amd64-fedora-41:${{ gitea.sha }} g++ --version + - name: Tag + run: docker tag code.helloryan.se/infra/buildenv/cxx-amd64-fedora-41:${{ gitea.sha }} code.helloryan.se/infra/buildenv/cxx-amd64-fedora-41:latest + - name: Push + run: docker push code.helloryan.se/infra/buildenv/cxx-amd64-fedora-41:latest infra/buildenv/cxx-amd64-alpine-3.20: runs-on: linux container: code.helloryan.se/infra/misc/docker:latest diff --git a/cxx-amd64-fedora-41/Dockerfile b/cxx-amd64-fedora-41/Dockerfile new file mode 100644 index 0000000..19f542b --- /dev/null +++ b/cxx-amd64-fedora-41/Dockerfile @@ -0,0 +1,15 @@ +FROM fedora:40 + +RUN true \ + && dnf -y update \ + && dnf -y install wget curl g++ gcc-plugin-devel openssl git make nodejs xxd \ + && dnf -y install glibc-static libstdc++-static \ + && dnf clean all + +RUN true \ + && mkdir ~/build2-build \ + && cd ~/build2-build \ + && curl -sSfO https://download.build2.org/0.17.0/build2-install-0.17.0.sh \ + && sh build2-install-0.17.0.sh --yes --trust yes \ + && cd / \ + && rm -rf ~/build2-build