Compare commits
94
Commits
v0.0.1
..
91a01324a7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91a01324a7 | ||
|
|
c7fa874c69 | ||
|
|
49d9abdb4b | ||
|
|
80965894cc | ||
|
|
21767733d3 | ||
|
|
ab2d563753 | ||
|
|
3f965496eb | ||
|
|
ef5bb0091f | ||
|
|
a20ea883fc | ||
|
|
a5c6b7f7e1 | ||
|
|
65ab37cbce | ||
|
|
fdf74ce54f | ||
|
|
b77dba65ef | ||
|
|
0f7af2ea4a | ||
|
|
1a50a8cdf3 | ||
|
|
81d8c87727 | ||
|
|
78c9e8c056 | ||
|
|
6c703bdde4 | ||
|
|
d56b2fb4b4 | ||
|
|
06259a0736 | ||
|
|
e55344c98f | ||
|
|
739568dfa1 | ||
|
|
affc13f5df | ||
|
|
16178a2aa8 | ||
|
|
9ce75893b5 | ||
|
|
ec87e9ff96 | ||
|
|
19aa77214e | ||
|
|
34efcd90d8 | ||
|
|
095c162d56 | ||
|
|
04aae9fcbb | ||
|
|
408d84b965 | ||
|
|
cab69ba2d8 | ||
|
|
5fcb95d437 | ||
|
|
4cd85c35e4 | ||
|
|
aa341744b1 | ||
|
|
40fe2c15f7 | ||
|
|
0ac91f7c96 | ||
|
|
4da5b5c0f2 | ||
|
|
609fac702f | ||
|
|
c56c0c6f66 | ||
|
|
1873b0788a | ||
|
|
c57d58d0d0 | ||
|
|
03bfee6a2f | ||
|
|
8e088dea2d | ||
|
|
1a3d1028c5 | ||
|
|
1aa736dbaa | ||
|
|
142926aabc | ||
|
|
cc44cb3ec2 | ||
|
|
1285a433c3 | ||
|
|
185bc06197 | ||
|
|
cf78f5945f | ||
|
|
c794021182 | ||
|
|
206ffe4b95 | ||
|
|
0a35eb20ba | ||
|
|
7fe162b20e | ||
|
|
314a3371ba | ||
|
|
6d7f567769 | ||
|
|
80a95ba3f2 | ||
|
|
3dc467f9e4 | ||
|
|
c9f65ab11d | ||
|
|
9638ece0df | ||
|
|
8d803d13f7 | ||
|
|
d1f4915912 | ||
|
|
36b051c0e3 | ||
|
|
854fdc52b6 | ||
|
|
9bcc71d576 | ||
|
|
bfc5022343 | ||
|
|
6cc746bdb7 | ||
|
|
65cefcb422 | ||
|
|
5a5554a307 | ||
|
|
716e68b46c | ||
|
|
d38f7a0d76 | ||
|
|
119fd11d1d | ||
|
|
5de6c5b741 | ||
|
|
9c2acd9c73 | ||
|
|
bd504cc7bf | ||
|
|
797cea590a | ||
|
|
a8e2331f89 | ||
|
|
64ebfb04d6 | ||
|
|
0576c5c680 | ||
|
|
bcc349744e | ||
|
|
7a2d6e865c | ||
|
|
9c278ee97b | ||
|
|
8d1d7ac166 | ||
|
|
2f3838ecdd | ||
|
|
82cc072a19 | ||
|
|
c30d014610 | ||
|
|
3e966df299 | ||
|
|
63be8bbd24 | ||
|
|
2d187bf47e | ||
|
|
7673d4da77 | ||
|
|
74d9b8c9b5 | ||
|
|
8c21f439c9 | ||
|
|
d043929efc
|
+18
-11
@@ -7,21 +7,29 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
hadolint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
|
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
|
||||||
continue-on-error: true
|
|
||||||
with:
|
with:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
build-push:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
|
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
|
- run: docker build -t ci-image:${{ github.sha }} .
|
||||||
|
|
||||||
|
build-push:
|
||||||
|
needs: [test]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
|
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
|
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
@@ -30,13 +38,12 @@ jobs:
|
|||||||
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
|
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
|
||||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||||
- id: meta
|
- id: meta
|
||||||
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
|
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
|
||||||
with:
|
with:
|
||||||
images: jcabillot/opencode-openchamber
|
images: jcabillot/opencode-openchamber
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest
|
type=raw,value=${{ steps.get-latest-tag.outputs.tag }}-latest,enable=${{ steps.get-latest-tag.outputs.tag != '' }}
|
||||||
type=raw,value=${{ steps.get-latest-tag.outputs.tag }},enable=${{ steps.get-latest-tag.outputs.tag != '' }}
|
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
|
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
+16
-36
@@ -1,62 +1,42 @@
|
|||||||
name: Main Release
|
name: Main Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
hadolint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
|
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
build-push:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
||||||
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
|
|
||||||
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
- id: meta
|
|
||||||
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
|
|
||||||
with:
|
|
||||||
images: jcabillot/opencode-openchamber
|
|
||||||
tags: |
|
|
||||||
type=raw,value=latest
|
|
||||||
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
pull: true
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
|
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
- run: docker build -t ci-image:${{ github.sha }} .
|
- run: docker build -t ci-image:${{ github.sha }} .
|
||||||
- run: bash tests/test.sh ci-image:${{ github.sha }}
|
build:
|
||||||
|
needs: [test]
|
||||||
tag:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
|
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
|
- run: docker build -t jcabillot/opencode-openchamber:${{ github.sha }} .
|
||||||
|
tag:
|
||||||
|
needs: [build]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Configure git auth
|
- name: Configure git auth
|
||||||
run: |
|
run: |
|
||||||
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@scm.cabillot.eu/perso/opencode-openchamber.git"
|
git remote set-url origin "https://x-access-token:${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}@scm.cabillot.eu/perso/opencode-openchamber.git"
|
||||||
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
|
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}
|
||||||
DEFAULT_BUMP: patch
|
DEFAULT_BUMP: patch
|
||||||
RELEASE_BRANCHES: main
|
RELEASE_BRANCHES: main
|
||||||
WITH_V: true
|
WITH_V: true
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
name: PR Checks
|
name: PR Checks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
hadolint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
|
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@@ -17,7 +15,10 @@ jobs:
|
|||||||
build-test:
|
build-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
|
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
|
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- run: docker build -t ci-image:${{ github.sha }} .
|
- run: docker build -t ci-image:${{ github.sha }} .
|
||||||
- run: bash tests/test.sh ci-image:${{ github.sha }}
|
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
name: Renovate
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
renovate:
|
||||||
|
uses: perso/gitea-pipelines/.gitea/workflows/renovate.yaml@main
|
||||||
|
secrets: inherit
|
||||||
@@ -7,29 +7,38 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
hadolint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
|
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
|
||||||
continue-on-error: true
|
|
||||||
with:
|
with:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
build-push:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
|
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
|
- run: docker build -t ci-image:${{ github.sha }} .
|
||||||
|
|
||||||
|
build-push:
|
||||||
|
needs: [test]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
|
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
|
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- id: meta
|
- id: meta
|
||||||
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
|
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
|
||||||
with:
|
with:
|
||||||
images: jcabillot/opencode-openchamber
|
images: jcabillot/opencode-openchamber
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
|
type=ref,event=tag,suffix=-latest
|
||||||
|
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
+10
-7
@@ -1,21 +1,24 @@
|
|||||||
|
# hadolint ignore=DL3007
|
||||||
FROM jcabillot/opencode:latest
|
FROM jcabillot/opencode:latest
|
||||||
|
|
||||||
ARG OPENCHAMBER_WEB_VERSION=1.12.3
|
ARG OPENCHAMBER_WEB_VERSION=1.23.2
|
||||||
|
|
||||||
ENV NPM_CONFIG_UPDATE_NOTIFIER=false \
|
ENV NPM_CONFIG_UPDATE_NOTIFIER=false \
|
||||||
NPM_CONFIG_LOGLEVEL=warn \
|
NPM_CONFIG_LOGLEVEL=warn \
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
|
||||||
|
# hadolint ignore=DL4006
|
||||||
USER root
|
USER root
|
||||||
|
# hadolint ignore=DL3008
|
||||||
RUN rm -rf /tmp/* \
|
RUN apt-get update \
|
||||||
&& apt-get update \
|
&& apt-get install -y --no-install-recommends \
|
||||||
&& apt-get install -y --no-install-recommends python3 make g++ \
|
python3 \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& npm install -g --no-fund --no-audit "@openchamber/web@${OPENCHAMBER_WEB_VERSION}" \
|
&& npm install -g --no-fund --no-audit "@openchamber/web@${OPENCHAMBER_WEB_VERSION}" \
|
||||||
&& npm cache clean --force \
|
&& npm cache clean --force \
|
||||||
&& openchamber --version \
|
&& openchamber --version
|
||||||
&& chown -R opencode:opencode /home/opencode
|
|
||||||
|
|
||||||
WORKDIR /home/opencode/
|
WORKDIR /home/opencode/
|
||||||
USER opencode
|
USER opencode
|
||||||
|
|||||||
Reference in New Issue
Block a user