mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 04:35:41 -04:00
ci: add README.md cache to deployment workflow, inject docker label org.opencontainers.image.description`
This commit is contained in:
24
.github/workflows/deploy-docker-github.yml
vendored
24
.github/workflows/deploy-docker-github.yml
vendored
@@ -324,6 +324,29 @@ jobs:
|
||||
username: ${{ env.IMAGE_GHCR_USERNAME }}
|
||||
password: ${{ secrets.ORG_BINARYNINJA_TOKEN_CL }}
|
||||
|
||||
# #
|
||||
# Release › Github › Read Readme
|
||||
# #
|
||||
|
||||
- name: '📄 Cache README.md'
|
||||
id: task_release_gh_readme_cache
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.ORG_BINARYNINJA_TOKEN_CL }}
|
||||
script: |
|
||||
'use strict'
|
||||
|
||||
const { promises: fs } = require('fs')
|
||||
|
||||
const main = async () => {
|
||||
const path = 'README.md'
|
||||
let content = await fs.readFile(path, 'utf8')
|
||||
|
||||
core.setOutput('content', content)
|
||||
}
|
||||
|
||||
main().catch(err => core.setFailed(err.message))
|
||||
|
||||
# #
|
||||
# Release › Github › Meta
|
||||
# #
|
||||
@@ -360,6 +383,7 @@ jobs:
|
||||
labels: |
|
||||
org.opencontainers.image.created=${{ env.NOW_DOCKER_TS }}
|
||||
org.opencontainers.image.version=${{ env.IMAGE_VERSION }}
|
||||
org.opencontainers.image.description=${{ steps.task_release_gh_readme_cache.outputs.content }}
|
||||
org.opencontainers.image.licenses=MIT
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
org.opencontainers.image.vendor=${{ env.REGISTRY_REPO_AUTHOR_LC }}
|
||||
|
||||
Reference in New Issue
Block a user