release issues

This commit is contained in:
ElevenNotes
2025-02-10 11:56:51 +01:00
parent 303774a72c
commit 129c21344c

View File

@@ -6,15 +6,12 @@ on:
release: release:
description: 'create release or not' description: 'create release or not'
required: false required: false
default: true
type: 'boolean'
push: push:
tags: tags:
- 'v*' - 'v*'
env: env:
DOCKER_USERNAME: 11notes WORKFLOW_GITHUB_RELEASE: true
RELEASE: true
jobs: jobs:
build-and-push-image: build-and-push-image:
@@ -59,15 +56,15 @@ jobs:
: # echo inputs : # echo inputs
echo "${{ toJSON(github.event.inputs) }}" echo "${{ toJSON(github.event.inputs) }}"
- name: github / disable release - name: github / set workflow release
if: ${{ inputs.release != null }} if: github.event_name == 'workflow_dispatch'
run: | run: |
echo "RELEASE=${{ inputs.release }}" >> $GITHUB_ENV echo "WORKFLOW_GITHUB_RELEASE=${{ github.event.inputs.release }}" >> $GITHUB_ENV
- name: docker / login to hub - name: docker / login to hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with: with:
username: ${{ env.DOCKER_USERNAME }} username: 11notes
password: ${{ secrets.DOCKER_TOKEN }} password: ${{ secrets.DOCKER_TOKEN }}
- name: docker / setup qemu - name: docker / setup qemu
@@ -144,7 +141,7 @@ jobs:
${{ env.IMAGE_TAGS }} ${{ env.IMAGE_TAGS }}
- name: github / create release notes - name: github / create release notes
if: ${{ env.RELEASE == 'true' && hashFiles('RELEASE.md') != '' }} if: env.WORKFLOW_GITHUB_RELEASE == 'true' && hashFiles('RELEASE.md') != ''
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
@@ -169,7 +166,7 @@ jobs:
- name: docker / push README.md to docker hub - name: docker / push README.md to docker hub
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8
env: env:
DOCKER_USER: ${{ env.DOCKER_USERNAME }} DOCKER_USER: 11notes
DOCKER_PASS: ${{ secrets.DOCKER_TOKEN }} DOCKER_PASS: ${{ secrets.DOCKER_TOKEN }}
with: with:
destination_container_repo: ${{ env.json_image }} destination_container_repo: ${{ env.json_image }}
@@ -178,7 +175,7 @@ jobs:
readme_file: 'README.md' readme_file: 'README.md'
- name: github / dispatch workflow - name: github / dispatch workflow
if: ${{ env.json_dispatch_workflow != null }} if: env.json_dispatch_workflow != null
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc
with: with:
workflow: ${{ env.json_dispatch_workflow }} workflow: ${{ env.json_dispatch_workflow }}