Add node
This commit is contained in:
parent
d6ea93cce7
commit
8d95fc86a1
@ -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
3
node/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM node:current-alpine
|
||||||
|
|
||||||
|
RUN apk add git
|
Loading…
Reference in New Issue
Block a user