Prepare universal workflow

This commit is contained in:
Alexey Pustovalov 2024-02-08 03:22:30 +09:00
parent ceddc1aca4
commit ce62b9b66f

View File

@ -187,5 +187,9 @@ jobs:
push: ${{ secrets.AUTO_PUSH_IMAGES }}
tags: ${{ steps.meta_release.conclusion == 'skipped' && steps.meta_trunk.outputs.tags || steps.meta_release.outputs.tags }}
labels: |
org.opencontainers.image.revision=${{ steps.meta_release.conclusion == 'skipped' && fromJSON(steps.meta_trunk.outputs.json).labels['org.opencontainers.image.revision'] || fromJSON(steps.meta_release.outputs.json).labels['org.opencontainers.image.revision'] }}
org.opencontainers.image.created=${{ steps.meta_release.conclusion == 'skipped' && fromJSON(steps.meta_trunk.outputs.json).labels['org.opencontainers.image.created'] || fromJSON(steps.meta_release.outputs.json).labels['org.opencontainers.image.created'] }}
org.opencontainers.image.revision=${{ steps.meta_release.conclusion == 'skipped' &&
fromJSON(steps.meta_trunk.outputs.json).labels['org.opencontainers.image.revision'] ||
fromJSON(steps.meta_release.outputs.json).labels['org.opencontainers.image.revision'] }}
org.opencontainers.image.created=${{ steps.meta_release.conclusion == 'skipped' &&
fromJSON(steps.meta_trunk.outputs.json).labels['org.opencontainers.image.created'] ||
fromJSON(steps.meta_release.outputs.json).labels['org.opencontainers.image.created'] }}