From 12b600aa1a1a6f16270645f29fb3747dc7e8032c Mon Sep 17 00:00:00 2001 From: Oliver Killane Date: Wed, 27 Sep 2023 12:19:22 +0100 Subject: [PATCH] Added metadata for image --- .github/workflows/push-dev-image.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-dev-image.yaml b/.github/workflows/push-dev-image.yaml index 3f38ae6..de11465 100644 --- a/.github/workflows/push-dev-image.yaml +++ b/.github/workflows/push-dev-image.yaml @@ -1,5 +1,5 @@ name: Build and Publish Image - +run-name: Pushing new Imperial College Notes Devcontainer by @${{ github.actor }} on: push: branches: @@ -13,6 +13,16 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Metadata + uses: docker/metadata-action@v5 + with: + images: ghcr.io/oliverkillane/imperial-computing-notes-dev + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + labels: | + org.opencontainers.image.description=A container for easy setup in developing the Imperial Computing Note project. - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -25,6 +35,7 @@ jobs: context: .devcontainer push: true platforms: linux/amd64 - tags: ghcr.io/oliverkillane/imperial-computing-notes-dev:latest + tags: ${{ steps.metadata.outputs.tags }} + labels: ${{ steps.metadata.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max \ No newline at end of file