Add node
Some checks failed
on-push / infra/buildenv/node (push) Failing after 26s
on-push / infra/buildenv/cxx-amd64-fedora-40 (push) Has been cancelled

This commit is contained in:
RYAN 2024-05-26 10:15:27 +02:00
parent d6ea93cce7
commit 8d95fc86a1
Signed by: RYAN
GPG Key ID: 3BD93EABD1407B82
2 changed files with 19 additions and 0 deletions

View File

@ -18,3 +18,19 @@ 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 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 - name: Push
run: docker push code.helloryan.se/infra/buildenv/cxx-amd64-fedora-40:latest run: docker push code.helloryan.se/infra/buildenv/cxx-amd64-fedora-40:latest
infra/buildenv/node:
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/node:${{ gitea.sha }} node
- name: Test
run: docker run --rm code.helloryan.se/infra/buildenv/node:${{ gitea.sha }} g++ --version
- name: Tag
run: docker tag code.helloryan.se/infra/buildenv/node:${{ gitea.sha }} code.helloryan.se/infra/buildenv/node:latest
- name: Push
run: docker push code.helloryan.se/infra/buildenv/node:latest

3
node/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM node:current-alpine
RUN apk add git