Skip to content

Commit

Permalink
More metadata in the Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
riussi committed Jul 21, 2023
1 parent a4a585d commit a1e15e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule
# set latest tag for main branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=schedule,pattern={{date 'YYYYMMDD-hhmmss' tz='Europe/Berlin'}}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ FROM golang:1.20.6-bookworm
########################################
# METADATA
LABEL author="Juha Ristolainen <[email protected]>"
LABEL org.opencontainers.image.vendor="Juha Ristolainen"
LABEL org.opencontainers.image.source="https://github.com/riussi/docker-build-image-go"
LABEL org.opencontainers.image.description="My personal Go builder-image"
LABEL org.opencontainers.image.licenses="Apache 2.0"

########################################
# ARGUMENTS
ARG USER=dev

########################################
# ENVIRONMENT
# GITHUB_TOKEN, GITLAB_TOKEN and GITEA_TOKEN
ENV DEBIAN_FRONTEND "noninteractive"
ENV HOME /home/${USER}
ENV GOLANGCILINT_VERSION 1.53.3
Expand Down

0 comments on commit a1e15e3

Please sign in to comment.