Skip to content

Commit

Permalink
Add labels into Dockerfile (#333)
Browse files Browse the repository at this point in the history
* Add source label for renovatebot

* Update Dockerfile

* Update docker-publish.yml
  • Loading branch information
SimonMisencik authored Aug 4, 2023
1 parent 3eb8bc3 commit b8c3f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fetch-depth: 0

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME
run: docker build --build-arg git_commit=$(git rev-parse HEAD) . --file Dockerfile --tag $IMAGE_NAME

- name: Log into docker hub
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ RUN yarn run build

FROM node:18-slim

ARG git_commit=unspecified
LABEL git_commit="${git_commit}"
LABEL org.opencontainers.image.source="https://github.com/FRINXio/frinx-inventory-server"

RUN apt-get update
RUN apt-get install -y openssl wget

Expand Down

0 comments on commit b8c3f16

Please sign in to comment.