Add cxx-amd64-fedora-40
Some checks failed
on-push / infra/buildenv/cxx-amd64-fedora-40 (push) Failing after 4m17s
Some checks failed
on-push / infra/buildenv/cxx-amd64-fedora-40 (push) Failing after 4m17s
This commit is contained in:
parent
44c574989c
commit
955f9f25c1
@ -2,10 +2,19 @@ name: on-push
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
infra/buildenv/cxx-amd64-fedora-40:
|
||||
runs-on: linux
|
||||
container:
|
||||
image: fedora:latest
|
||||
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-40:${{ gitea.sha }} cxx-amd64-fedora-40
|
||||
- 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
|
||||
|
14
cxx-amd64-fedora-40/Dockerfile
Normal file
14
cxx-amd64-fedora-40/Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user