Skip to content

Commit 7b5ba80

Browse files
committed
fix
1 parent c486a2d commit 7b5ba80

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/build-image.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ on:
1717
env:
1818
# Default values - customize these for your project
1919
DEFAULT_IMAGE_TITLE: "My Example Application"
20-
DEFAULT_IMAGE_DESCRIPTION: "A microservice handling user authentication and authorization"
2120
IMAGE_AUTHORS: "platform-team@example.com,#slack-platform-team"
2221
IMAGE_VENDOR: "ACME Corporation"
2322
IMAGE_LICENSES: "Apache-2.0"
@@ -80,7 +79,7 @@ jobs:
8079
# Labels using OCI standard keys
8180
labels: |
8281
org.opencontainers.image.title=${{ env.DEFAULT_IMAGE_TITLE }}
83-
org.opencontainers.image.description=${{ env.DEFAULT_IMAGE_DESCRIPTION }}
82+
org.opencontainers.image.description=${{ github.event.repository.description }}"
8483
org.opencontainers.image.authors=${{ env.IMAGE_AUTHORS }}
8584
org.opencontainers.image.vendor=${{ env.IMAGE_VENDOR }}
8685
org.opencontainers.image.licenses=${{ env.IMAGE_LICENSES }}
@@ -89,9 +88,11 @@ jobs:
8988
org.opencontainers.image.base.name=${{ steps.base_image.outputs.name }}
9089
org.opencontainers.image.base.digest=${{ steps.base_image.outputs.digest }}
9190
92-
# ============================================================
93-
# Step 6: Build image (no push)
94-
# ============================================================
91+
- name: Build the app
92+
run: |
93+
cd test-app
94+
make build
95+
9596
- name: Build image
9697
uses: docker/build-push-action@v5
9798
with:
@@ -103,9 +104,6 @@ jobs:
103104
cache-from: type=gha
104105
cache-to: type=gha,mode=max
105106

106-
# ============================================================
107-
# Step 7: Display all labels on the built image
108-
# ============================================================
109107
- name: Display image labels
110108
run: |
111109
echo "=============================================="

0 commit comments

Comments
 (0)