Skip to content

Commit

Permalink
ci: docker multi version support
Browse files Browse the repository at this point in the history
  • Loading branch information
wintbiit committed Dec 11, 2023
1 parent 2a9fe21 commit 96f6374
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ permissions:

env:
GO_VERSION: 1.20.1
CONTAINER_LABELS: |
org.opencontainers.image.source=https://github.com/wintbiit/ninedns
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
org.opencontainers.image.version=${{steps.get-current-tag.outputs.tag }}
org.opencontainers.image.title=ninedns ${{steps.get-current-tag.outputs.tag }}
org.opencontainers.image.description="flexible dns with source cidr dispatch and database record storage support"
org.opencontainers.image.licenses=AGPL-3.0

jobs:

Expand Down Expand Up @@ -227,7 +219,14 @@ jobs:
wulaguy/ninedns:${{steps.get-current-tag.outputs.tag }}
ghcr.io/wintbiit/ninedns:latest
ghcr.io/wintbiit/ninedns:${{steps.get-current-tag.outputs.tag }}
labels: ${{ env.CONTAINER_LABELS }}
labels: |
org.opencontainers.image.source=https://github.com/wintbiit/ninedns
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
org.opencontainers.image.version=${{steps.get-current-tag.outputs.tag }}
org.opencontainers.image.title=ninedns ${{steps.get-current-tag.outputs.tag }}
org.opencontainers.image.description="flexible dns with source cidr dispatch and database record storage support"
org.opencontainers.image.licenses=AGPL-3.0
cache-from: type=gha
cache-to: type=gha,mode=max

Expand All @@ -243,7 +242,14 @@ jobs:
tags: |
wulaguy/ninedns:${{steps.get-current-tag.outputs.tag }}-mini
ghcr.io/wintbiit/ninedns:${{steps.get-current-tag.outputs.tag }}-mini
labels: ${{ env.CONTAINER_LABELS }}
labels: |
org.opencontainers.image.source=https://github.com/wintbiit/ninedns
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
org.opencontainers.image.version=${{steps.get-current-tag.outputs.tag }}
org.opencontainers.image.title=ninedns ${{steps.get-current-tag.outputs.tag }}
org.opencontainers.image.description="flexible dns with source cidr dispatch and database record storage support"
org.opencontainers.image.licenses=AGPL-3.0
cache-from: type=gha
cache-to: type=gha,mode=max

Expand All @@ -259,6 +265,13 @@ jobs:
tags: |
wulaguy/ninedns:${{steps.get-current-tag.outputs.tag }}-full
ghcr.io/wintbiit/ninedns:${{steps.get-current-tag.outputs.tag }}-full
labels: ${{ env.CONTAINER_LABELS }}
labels: |
org.opencontainers.image.source=https://github.com/wintbiit/ninedns
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
org.opencontainers.image.version=${{steps.get-current-tag.outputs.tag }}
org.opencontainers.image.title=ninedns ${{steps.get-current-tag.outputs.tag }}
org.opencontainers.image.description="flexible dns with source cidr dispatch and database record storage support"
org.opencontainers.image.licenses=AGPL-3.0
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 96f6374

Please sign in to comment.