Skip to content

Commit

Permalink
Add annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Nov 7, 2024
1 parent 9854a2e commit 513753b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
jobs:
docker:
name: Docker (${{ matrix.branch }})
timeout-minutes: 50
timeout-minutes: 60

strategy:
fail-fast: false
Expand Down Expand Up @@ -60,15 +60,15 @@ jobs:
run: make docker-build
env:
DOCKER_PLATFORM: linux/amd64,linux/arm64
DOCKER_OUTPUT: type=image,push=true
DOCKER_OUTPUT: type=image,push=true,annotation-index.org.opencontainers.image.description="Daily builds of active Go development branches (branch ${{ env.GO_BRANCH }})"
DOCKER_TAG: aleksi/golang-tip:${{ env.GO_BRANCH }}

- name: Build Docker images for ghcr.io
if: github.event_name != 'pull_request'
run: make docker-build
env:
DOCKER_PLATFORM: linux/amd64,linux/arm64
DOCKER_OUTPUT: type=image,push=true
DOCKER_OUTPUT: type=image,push=true,annotation-index.org.opencontainers.image.description="Daily builds of active Go development branches (branch ${{ env.GO_BRANCH }})"
DOCKER_TAG: ghcr.io/aleksi/golang-tip:${{ env.GO_BRANCH }}

# skip push for PRs
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ go install std

EOF

LABEL org.opencontainers.image.title="Daily builds of active Go development branches (branch ${GO_BRANCH})"
LABEL org.opencontainers.image.description="Daily builds of active Go development branches (branch ${GO_BRANCH})"
LABEL org.opencontainers.image.url=https://github.com/AlekSi/golang-tip
LABEL org.opencontainers.image.source=https://github.com/AlekSi/golang-tip

0 comments on commit 513753b

Please sign in to comment.