Add cxx-amd64-fedora-40
Some checks failed
on-push / infra/buildenv/cxx-amd64-fedora-40 (push) Failing after 4m17s

This commit is contained in:
RYAN 2024-05-26 09:50:52 +02:00
parent 44c574989c
commit 955f9f25c1
Signed by: RYAN
GPG Key ID: 3BD93EABD1407B82
2 changed files with 27 additions and 4 deletions

View File

@ -2,10 +2,19 @@ name: on-push
on: [push] on: [push]
jobs: jobs:
build: infra/buildenv/cxx-amd64-fedora-40:
runs-on: linux runs-on: linux
container: container: code.helloryan.se/infra/misc/docker:latest
image: fedora:latest
steps: 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-40:${{ gitea.sha }} cxx-amd64-fedora-40
- name: Test - name: Test
run: echo Hello run: docker run --rm code.helloryan.se/infra/buildenv/cxx-amd64-fedora-40:${{ gitea.sha }} g++ --version
- name: Tag
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

View File

@ -0,0 +1,14 @@
FROM fedora:40
RUN true \
&& dnf -y update \
&& dnf -y install wget curl g++ openssl git make nodejs \
&& dnf clean all
RUN true \
&& mkdir ~/build2-build \
&& cd ~/build2-build \
&& curl -sSfO https://download.build2.org/0.16.0/build2-install-0.16.0.sh \
&& sh build2-install-0.16.0.sh --yes --trust yes \
&& cd / \
&& rm -rf ~/build2-build