Skip to content

Commit 5aa91b2

Browse files
committed
Add Labspace metadata and use new publish action in GHA
1 parent e4c6458 commit 5aa91b2

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/publish-labspace.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,13 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18-
# Ensure Compose v2.39.3+ is available (includes bug fixes for publishing)
19-
# Can remove this action once default runners include it
20-
- name: Set up Docker Compose
21-
uses: docker/setup-compose-action@v1
22-
with:
23-
version: v2.39.3
24-
2518
- name: Log in to DockerHub
2619
uses: docker/login-action@v3
2720
with:
2821
username: ${{ secrets.DOCKERHUB_USERNAME }}
2922
password: ${{ secrets.DOCKERHUB_TOKEN }}
3023

31-
- name: Publish Compose file
32-
run: |
33-
docker compose -f oci://dockersamples/labspace -f .labspace/compose.override.yaml publish ${DOCKERHUB_REPO} --with-env -y
24+
- name: Publish Labspace
25+
uses: dockersamples/publish-labspace-action@v1
26+
with:
27+
target_repo: ${{ env.DOCKERHUB_REPO }}

labspace.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
metadata:
2+
id: dockersamples/labspace-dhi-node
3+
sourceRepo: github.com/dockersamples/labspace-dhi-node
4+
contentVersion: abcd123 # Will be replaced during release process
5+
16
title: Docker DHI Node Labspace
27
description: |
38
A repository containing a Hello World Node.js application consisting of a basic ExpressJS server and Dockerfile pointing to an Debian Base image to demonstrate the use of Docker Hardened Images (DHI)

0 commit comments

Comments
 (0)