mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-26 01:20:29 +00:00
Fix empty env context in nightly builds
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
eed61ac510
commit
8034f289d1
1 changed files with 12 additions and 4 deletions
16
.github/workflows/docker.yml
vendored
16
.github/workflows/docker.yml
vendored
|
@ -18,6 +18,14 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Repo metadata
|
||||||
|
id: repo
|
||||||
|
uses: actions/github-script@v3
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const repo = await github.repos.get(context.repo)
|
||||||
|
return repo.data
|
||||||
|
|
||||||
- name: Gather image information
|
- name: Gather image information
|
||||||
id: info
|
id: info
|
||||||
run: |
|
run: |
|
||||||
|
@ -69,10 +77,10 @@ jobs:
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.title=SFTPGo
|
org.opencontainers.image.title=SFTPGo
|
||||||
org.opencontainers.image.description=Fully featured and highly configurable SFTP server with optional FTP/S and WebDAV support
|
org.opencontainers.image.description=Fully featured and highly configurable SFTP server with optional FTP/S and WebDAV support
|
||||||
org.opencontainers.image.url=https://github.com/users/drakkan/packages/container/package/sftpgo
|
org.opencontainers.image.url=${{ fromJson(steps.repo.outputs.result).html_url }}
|
||||||
org.opencontainers.image.documentation=https://github.com/drakkan/sftpgo/blob/master/docker/README.md
|
org.opencontainers.image.documentation=${{ fromJson(steps.repo.outputs.result).html_url }}/blob/${{ github.sha }}/docker/README.md
|
||||||
org.opencontainers.image.source=https://github.com/drakkan/sftpgo.git
|
org.opencontainers.image.source=${{ fromJson(steps.repo.outputs.result).clone_url }}
|
||||||
org.opencontainers.image.version=${{ steps.info.outputs.version }}
|
org.opencontainers.image.version=${{ steps.info.outputs.version }}
|
||||||
org.opencontainers.image.created=${{ steps.info.outputs.created }}
|
org.opencontainers.image.created=${{ steps.info.outputs.created }}
|
||||||
org.opencontainers.image.revision=${{ github.sha }}
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
org.opencontainers.image.licenses=GPL-3.0
|
org.opencontainers.image.licenses=${{ fromJson(steps.repo.outputs.result).license.spdx_id }}
|
||||||
|
|
Loading…
Reference in a new issue