[breaking] switch to distroless and static binary

This commit is contained in:
ElevenNotes
2025-04-14 07:23:48 +02:00
parent 5cce7c6900
commit 59ebf2bfbf
14 changed files with 589 additions and 267 deletions

36
.github/workflows/full.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: tags
on:
push:
tags:
- 'full'
jobs:
node:
runs-on: ubuntu-latest
steps:
- name: init / base64 nested json
uses: actions/github-script@62c3794a3eb6788d9a2a72b219504732c0c9a298
with:
script: |
const { Buffer } = require('node:buffer');
(async()=>{
try{
const etc = {
build:{
args:{
NGINX_CONFIGURATION:'full',
}
},
semverprefix:'full',
};
core.exportVariable('WORKFLOW_BASE64JSON', Buffer.from(JSON.stringify(etc)).toString('base64'));
}catch(e){
core.setFailed(`workflow failed: ${e}`);
}
})();
- name: build docker image
uses: the-actions-org/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7
with:
workflow: docker.yml
token: "${{ secrets.REPOSITORY_TOKEN }}"
inputs: '{ "release":"false", "readme":"true", "etc":"${{ env.WORKFLOW_BASE64JSON }}" }'