Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fec07f316 | ||
|
|
0e72d192c4 | ||
|
|
c520cb9926 | ||
|
|
15de535ff4 | ||
|
|
490b824a5c | ||
|
|
b113168344 | ||
|
|
99c50a0cc3 | ||
|
|
2c22741806 | ||
|
|
ab342272b3 | ||
|
|
efe5f30b92 | ||
|
|
10ed6108b4 | ||
|
|
4c1258305b | ||
|
|
299d5dbfad | ||
|
|
259c67da7c |
@@ -43,7 +43,7 @@ jobs:
|
||||
images: jcabillot/opencode
|
||||
tags: |
|
||||
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
|
||||
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
tags: |
|
||||
type=ref,event=tag
|
||||
type=ref,event=tag,suffix=-latest
|
||||
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
|
||||
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ RUN apt-get update && \
|
||||
npm install -g --no-fund --no-audit --ignore-scripts n2-soul@9.0.9 && \
|
||||
npm install -g --no-fund --no-audit --allow-scripts=better-sqlite3 better-sqlite3@12.11.1 && \
|
||||
rm -rf /usr/local/lib/node_modules/n2-soul/node_modules/better-sqlite3 && \
|
||||
npm install -g --no-fund --no-audit --allow-scripts=opencode-ai opencode-ai@1.18.25 && \
|
||||
npm install -g --no-fund --no-audit --allow-scripts=opencode-ai opencode-ai@1.18.30 && \
|
||||
npm cache clean --force && \
|
||||
chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/
|
||||
|
||||
|
||||
Vendored
-38
@@ -1,38 +0,0 @@
|
||||
pipeline {
|
||||
environment {
|
||||
registry = 'https://registry.hub.docker.com'
|
||||
registryCredential = 'dockerhub_jcabillot'
|
||||
dockerImage = 'jcabillot/opencode'
|
||||
}
|
||||
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
cron('@midnight')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Clone repository') {
|
||||
steps{
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build image') {
|
||||
steps{
|
||||
sh 'docker build --force-rm=true --no-cache=true --pull -t ${dockerImage} .'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy Image') {
|
||||
steps{
|
||||
script {
|
||||
withCredentials([usernamePassword(credentialsId: 'dockerhub_jcabillot', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS')]) {
|
||||
sh 'docker login --username ${DOCKER_USER} --password ${DOCKER_PASS}'
|
||||
sh 'docker push ${dockerImage}'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user