Skip to content

Commit

Permalink
ci: fix docker labels again (#6979)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Oct 30, 2023
1 parent add8f9d commit 0162ed3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:

env:
package-name: monica-next
description: This is MonicaHQ, your personal memory! MonicaHQ is like a CRM but for the friends, family, and acquaintances around you.

jobs:
docker-run:
Expand All @@ -36,7 +37,7 @@ jobs:
tags: |
type=sha
labels: |
org.opencontainers.image.description="This is MonicaHQ, your personal memory! MonicaHQ is like a CRM but for the friends, family, and acquaintances around you."
org.opencontainers.image.description="${{ env.description }}"
org.opencontainers.image.title="MonicaHQ, the Personal Relationship Manager"
org.opencontainers.image.vendor="Monica"
Expand All @@ -54,10 +55,6 @@ jobs:
- name: Configure variables
run: scripts/docker/build.sh --skip-build $GITHUB_SHA

- name: Fix labels
id: labels
run: scripts/ci/labels.sh labels "${{ steps.docker_meta.outputs.labels }}"

# Build docker
- name: Docker build
id: docker_build
Expand All @@ -70,7 +67,7 @@ jobs:
file: scripts/docker/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
outputs: ${{ steps.labels.outputs.labels }}
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description="${{ env.description }}"

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down

0 comments on commit 0162ed3

Please sign in to comment.