commit
f75d131cd3
4 files changed
+29
No files matched your search
@@ -0,0 +1,21 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Toolchain versions
|
||||||
|
run: |
|
||||||
|
node --version
|
||||||
|
npm --version
|
||||||
|
php --version | head -1
|
||||||
|
go version
|
||||||
|
- name: Docker build
|
||||||
|
run: |
|
||||||
|
docker build -t ci-demo:${GITHUB_SHA::7} .
|
||||||
|
docker run --rm ci-demo:${GITHUB_SHA::7}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
FROM node:20-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
COPY app.js .
|
||||||
|
CMD ["node", "app.js"]
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# ci-demo
|
||||||
|
|
||||||
|
Repo de test pentru Gitea Actions (runner host mode + Docker).
|
||||||
Reference in new issue
Block a user