Skip to content

Commit 1d2ef43

Browse files
committed
fix(Docker images): add labels from building workflow
1 parent 2a6e583 commit 1d2ef43

5 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/sharevb-docker-nightly-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ jobs:
6161
- ci
6262

6363
steps:
64+
- name: Docker meta
65+
id: meta
66+
uses: docker/metadata-action@v6
67+
with:
68+
images: sharevb/it-tools
69+
6470
# Checkout the repository
6571
- name: Checkout repository
6672
uses: actions/checkout@v4
@@ -91,6 +97,7 @@ jobs:
9197
file: ./Dockerfile
9298
platforms: linux/amd64,linux/arm64
9399
push: true
100+
labels: ${{ steps.meta.outputs.labels }}
94101
tags: |
95102
sharevb/it-tools:nightly
96103
ghcr.io/${{ github.repository_owner }}/it-tools:nightly

.github/workflows/sharevb-docker-realease-baseurl-it-tools.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
needs:
4343
- ci
4444
steps:
45+
- name: Docker meta
46+
id: meta
47+
uses: docker/metadata-action@v6
48+
with:
49+
images: sharevb/it-tools
50+
4551
# Checkout the repository
4652
- name: Checkout repository
4753
uses: actions/checkout@v4
@@ -74,6 +80,7 @@ jobs:
7480
"BASE_URL=/it-tools/"
7581
platforms: linux/amd64,linux/arm64
7682
push: true
83+
labels: ${{ steps.meta.outputs.labels }}
7784
tags: |
7885
sharevb/it-tools:baseurl-it-tools
7986
ghcr.io/sharevb/it-tools:baseurl-it-tools

.github/workflows/sharevb-docker-realease-latest.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
needs:
4343
- ci
4444
steps:
45+
- name: Docker meta
46+
id: meta
47+
uses: docker/metadata-action@v6
48+
with:
49+
images: sharevb/it-tools
50+
4551
# Checkout the repository
4652
- name: Checkout repository
4753
uses: actions/checkout@v4
@@ -74,6 +80,7 @@ jobs:
7480
"BASE_URL=/"
7581
platforms: linux/amd64,linux/arm64
7682
push: true
83+
labels: ${{ steps.meta.outputs.labels }}
7784
tags: |
7885
sharevb/it-tools:latest
7986
ghcr.io/${{ github.repository_owner }}/it-tools:latest

.github/workflows/sharevb-releases.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
docker-release:
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Docker meta
16+
id: meta
17+
uses: docker/metadata-action@v6
18+
with:
19+
images: sharevb/it-tools
20+
1521
- name: Get release version
1622
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
1723

@@ -46,6 +52,7 @@ jobs:
4652
"BASE_URL=/it-tools/"
4753
platforms: linux/amd64,linux/arm64
4854
push: true
55+
labels: ${{ steps.meta.outputs.labels }}
4956
tags: |
5057
sharevb/it-tools:baseurl-it-tools
5158
sharevb/it-tools:stable-baseurl-it-tools
@@ -61,6 +68,7 @@ jobs:
6168
file: ./Dockerfile
6269
platforms: linux/amd64,linux/arm64
6370
push: true
71+
labels: ${{ steps.meta.outputs.labels }}
6472
tags: |
6573
sharevb/it-tools:latest
6674
sharevb/it-tools:stable

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ RUN pnpm build
1818

1919
# production stage
2020
FROM nginxinc/nginx-unprivileged:stable-alpine AS production-stage
21+
22+
LABEL maintainer="ShareVB <sharevb@gmail.com>" \
23+
org.opencontainers.image.authors="ShareVB <sharevb@gmail.com>"
24+
2125
ENV VITE_VERCEL_ENV=production
2226
ARG BASE_URL
2327
ENV BASE_URL=${BASE_URL}

0 commit comments

Comments
 (0)