Compare commits
53
Commits
609fac702f
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
614ffd5dda | ||
|
|
b555ac11de | ||
|
|
380695ecbe | ||
|
|
7eafe00c9a | ||
|
|
b34f575889 | ||
|
|
e9e09b08ac | ||
|
|
e8135788a2 | ||
|
|
62f42a3e36 | ||
|
|
5f81259236 | ||
|
|
50eea356b2 | ||
|
|
fec5249382 | ||
|
|
eb80014059 | ||
|
|
e3ab1cb11c | ||
|
|
99105accce | ||
|
|
d22d946fed | ||
|
|
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 |
No files matched your search
@@ -0,0 +1,34 @@
|
|||||||
|
name: CI Shared Jobs
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
hadolint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
|
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
|
||||||
|
with:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
failure-threshold: warning
|
||||||
|
|
||||||
|
build-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
|
- name: Build (cached)
|
||||||
|
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
tags: ci-image:${{ github.sha }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
- name: Test
|
||||||
|
run: bash tests/test.sh ci-image:${{ github.sha }}
|
||||||
+17
-23
@@ -1,52 +1,46 @@
|
|||||||
name: Nightly Rebuild
|
name: Nightly Rebuild
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
uses: ./.gitea/workflows/_ci-common.yaml
|
||||||
continue-on-error: true
|
secrets: inherit
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
||||||
- uses: hadolint/hadolint-action@2a66e89f53d0771bb131a7fa31f3136336094aa6 # v3.4.0
|
|
||||||
with:
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
||||||
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
|
||||||
- run: docker build -t ci-image:${{ github.sha }} .
|
|
||||||
|
|
||||||
build-push:
|
build-push:
|
||||||
needs: [test]
|
needs: [ci]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
- name: Checkout
|
||||||
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
- name: Set up Docker Buildx
|
||||||
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
|
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
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: get-latest-tag
|
- id: get-latest-tag
|
||||||
|
name: Get latest tag
|
||||||
run: |
|
run: |
|
||||||
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
|
||||||
|
name: Docker metadata
|
||||||
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
|
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
|
||||||
with:
|
with:
|
||||||
images: jcabillot/opencode-openchamber
|
images: jcabillot/opencode-openchamber
|
||||||
tags: |
|
tags: |
|
||||||
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 }}-latest,enable=${{ steps.get-latest-tag.outputs.tag != '' }}
|
||||||
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
pull: true
|
pull: true
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
+23
-20
@@ -1,40 +1,43 @@
|
|||||||
name: Main Release
|
name: Main Release
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
uses: ./.gitea/workflows/_ci-common.yaml
|
||||||
steps:
|
secrets: inherit
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
||||||
- uses: hadolint/hadolint-action@2a66e89f53d0771bb131a7fa31f3136336094aa6 # v3.4.0
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
||||||
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
|
||||||
- run: docker build -t ci-image:${{ github.sha }} .
|
|
||||||
build:
|
build:
|
||||||
needs: [test]
|
needs: [ci]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
- name: Checkout
|
||||||
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- run: docker build -t jcabillot/opencode-openchamber:${{ github.sha }} .
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
|
- name: Build (cached)
|
||||||
|
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
tags: jcabillot/opencode-openchamber:${{ github.sha }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
tag:
|
tag:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
- name: Checkout
|
||||||
|
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.SA_TOKEN_ACTION_PUSH_TAGS }}@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
|
- name: Bump version and push tag
|
||||||
|
uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}
|
GITHUB_TOKEN: ${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}
|
||||||
DEFAULT_BUMP: patch
|
DEFAULT_BUMP: patch
|
||||||
|
|||||||
@@ -1,24 +1,12 @@
|
|||||||
name: PR Checks
|
name: PR Checks
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
concurrency:
|
||||||
|
group: pr-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
uses: ./.gitea/workflows/_ci-common.yaml
|
||||||
steps:
|
secrets: inherit
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
||||||
- uses: hadolint/hadolint-action@2a66e89f53d0771bb131a7fa31f3136336094aa6 # v3.4.0
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
build-test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
||||||
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
|
||||||
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
- run: docker build -t ci-image:${{ github.sha }} .
|
|
||||||
+16
-23
@@ -1,47 +1,40 @@
|
|||||||
name: Tag Release
|
name: Tag Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ['*']
|
tags: ['*']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
uses: ./.gitea/workflows/_ci-common.yaml
|
||||||
continue-on-error: true
|
secrets: inherit
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
||||||
- uses: hadolint/hadolint-action@2a66e89f53d0771bb131a7fa31f3136336094aa6 # v3.4.0
|
|
||||||
with:
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
||||||
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
|
||||||
- run: docker build -t ci-image:${{ github.sha }} .
|
|
||||||
|
|
||||||
build-push:
|
build-push:
|
||||||
needs: [test]
|
needs: [ci]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
- name: Checkout
|
||||||
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
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
|
||||||
|
name: Docker metadata
|
||||||
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # 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
|
||||||
type=ref,event=tag,suffix=-latest
|
type=ref,event=tag,suffix=-latest
|
||||||
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
pull: true
|
pull: true
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# hadolint ignore=DL3007
|
# hadolint ignore=DL3007
|
||||||
FROM jcabillot/opencode:latest
|
FROM jcabillot/opencode:latest
|
||||||
|
|
||||||
ARG OPENCHAMBER_WEB_VERSION=1.17.1
|
ARG OPENCHAMBER_WEB_VERSION=2.1.1
|
||||||
|
|
||||||
ENV NPM_CONFIG_UPDATE_NOTIFIER=false \
|
ENV NPM_CONFIG_UPDATE_NOTIFIER=false \
|
||||||
NPM_CONFIG_LOGLEVEL=warn \
|
NPM_CONFIG_LOGLEVEL=warn \
|
||||||
|
|||||||
+3
-1
@@ -23,7 +23,9 @@ assert_eq() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
docker run -d --name "$CONTAINER_NAME" -p 3000:3000 "$IMAGE"
|
docker run -d --name "$CONTAINER_NAME" -p 3000:3000 \
|
||||||
|
-e OPENCHAMBER_ALLOW_UNAUTHENTICATED_LAN=true \
|
||||||
|
"$IMAGE"
|
||||||
|
|
||||||
echo "Waiting for container..."
|
echo "Waiting for container..."
|
||||||
READY=false
|
READY=false
|
||||||
|
|||||||
Reference in new issue
Block a user