36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
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 }}" }' |