Skip to content

Commit

Permalink
Add structure test
Browse files Browse the repository at this point in the history
Add LABELs

Signed-off-by: Jacob Woffenden <[email protected]>
  • Loading branch information
Jacob Woffenden committed Jan 25, 2024
1 parent f3a5ff8 commit 04844ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ jobs:
id: setup_container_structure_test
uses: ./.github/actions/setup-container-structure-test

- name: DEBUG
id: debug
run: |
container-structure-test version
- name: Set Up QEMU
id: setup_qemu
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
Expand All @@ -73,3 +68,11 @@ jobs:
platforms: ${{ matrix.platform }}
load: true
tags: ghcr.io/ministryofjustice/devcontainer-${{ matrix.image }}:${{ github.sha }}

- name: Container Structure Test
id: container_structure_test
run: |
container-structure-test test \
--platform ${{ matrix.platform }} \
--config images/${{ matrix.image }}/test/container-structure-test.yml \
--image ghcr.io/ministryofjustice/devcontainer-${{ matrix.image }}:${{ github.sha }}
6 changes: 6 additions & 0 deletions images/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04

LABEL org.opencontainers.image.vendor="Ministry of Justice" \
org.opencontainers.image.authors="Dev Container Community" \
org.opencontainers.image.title="Base Image" \
org.opencontainers.image.description="Extended version of Microsoft's image" \
org.opencontainers.image.url="https://github.com/ministryofjustice/data-platform/tree/main/containers/actions-runner"

COPY --chown=nobody:nobody --chmod=0755 src/usr/local/bin/devcontainer-utils /usr/local/bin/devcontainer-utils

0 comments on commit 04844ec

Please sign in to comment.