Skip to content

Commit 4df0785

Browse files
committed
Update workflow
1 parent d19a92d commit 4df0785

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Publish
1+
name: Build and publish
22

33
on:
44
workflow_dispatch:
@@ -13,30 +13,38 @@ jobs:
1313
contents: read
1414
packages: write
1515
steps:
16-
- name: Checkout
16+
- name: 📥 Checkout
1717
uses: actions/checkout@v4
18-
- name: Set up Docker Buildx
18+
- name: 🧰 Set up Docker Buildx
1919
uses: docker/setup-buildx-action@v2
20-
- name: Fetch docker metadata
20+
- name: ⚙️ Generate Docker image metadata
2121
id: docker_meta
2222
uses: docker/metadata-action@v5
2323
with:
2424
images: ghcr.io/creeperkatze/modfolio
2525
labels: |
26+
org.opencontainers.image.title=modfolio
27+
org.opencontainers.image.description=Flex your modding stats anywhere
28+
org.opencontainers.image.licenses=AGPL-3.0-only
2629
org.opencontainers.image.source=https://github.com/creeperkatze/modfolio
27-
- name: Login to GitHub Images
30+
annotations: |
31+
org.opencontainers.image.title=modfolio
32+
org.opencontainers.image.description=Flex your modding stats anywhere
33+
org.opencontainers.image.licenses=AGPL-3.0-only
34+
- name: 🔑 Login to GitHub Packages
2835
uses: docker/login-action@v3
2936
with:
3037
registry: ghcr.io
3138
username: ${{ github.actor }}
3239
password: ${{ secrets.GHCR_TOKEN }}
33-
- name: Build and push
40+
- name: 🔨 Build and push
3441
uses: docker/build-push-action@v6
3542
with:
3643
file: Dockerfile
3744
push: ${{ github.event_name != 'pull_request' }}
3845
tags: ${{ steps.docker_meta.outputs.tags }}
3946
labels: ${{ steps.docker_meta.outputs.labels }}
47+
annotations: ${{ steps.docker_meta.outputs.annotations }}
4048
cache-from: type=registry,ref=ghcr.io/creeperkatze/modfolio:main
4149
cache-to: type=inline
4250

0 commit comments

Comments
 (0)