Skip to content

Commit

Permalink
Added metadata for image
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverKillane committed Sep 27, 2023
1 parent 9335ca2 commit 3b6d1b9
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/push-dev-image.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build and Publish Image

run-name: @${{ github.actor }} Pushing new Imperial College Notes Devcontainer
on:
push:
branches:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 3b6d1b9

Please sign in to comment.