Skip to content

Commit

Permalink
Merge pull request #15 from acavella/14-feature-add-oci-image-descrip…
Browse files Browse the repository at this point in the history
…tion

14 feature add oci image description
  • Loading branch information
acavella authored Jan 12, 2024
2 parents 27a9219 + a92942c commit 73df8d1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
types: [created]

jobs:
docker-build:
name: Docker Build
ghcr-build:
name: GHCR Build
runs-on: ubuntu-latest

steps:
Expand All @@ -20,3 +20,19 @@ jobs:
addLatest: true
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

docker-build:
name: Docker Hub Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
name: Check out code
- uses: mr-smithers-excellent/docker-build-push@v6
with:
image: s0lution/gorevoke
registry: docker.io
dockerfile: build/docker/Dockerfile
addLatest: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ docker run -d \
-v ${PWD}/appdata/gorevoke/crl:/usr/local/bin/gorevoke/crl/static \
-v ${PWD}/appdata/gorevoke/config:/usr/local/bin/gorevoke/conf \
--restart=unless-stopped \
s0lution/gorevoke:latest
ghcr.io/acavella/gorevoke:latest
```

> [!IMPORTANT]
Expand Down
10 changes: 7 additions & 3 deletions build/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_TAG=v1.0.0-rc13
ARG BUILD_TAG=v1.0.0

FROM docker.io/library/golang:1.20.12-alpine3.19 as builder
ARG BUILD_TAG
Expand All @@ -12,8 +12,12 @@ RUN apk add --no-cache -U git \
FROM registry.access.redhat.com/ubi9/ubi:9.3-1476 as runner
ARG BUILD_TAG

LABEL maintainer="Tony Cavella <[email protected]>"
LABEL app.version=${BUILD_TAG}
LABEL org.opencontainers.image.title="GoRevoke"
LABEL org.opencontainers.image.version=${BUILD_TAG}
LABEL org.opencontainers.image.author="Tony Cavella <[email protected]>"
LABEL org.opencontainers.image.url="https://github.com/acavella/gorevoke"
LABEL org.opencontainers.image.description="GoRevoke is a standalone Certificate Revocation List Distrution Point written in Go, designed to be lightweight and fully self-contained."
LABEL org.opencontainers.image.licenses="MIT"

COPY --from=builder /usr/local/bin/gorevoke/ /usr/local/bin/gorevoke/

Expand Down

0 comments on commit 73df8d1

Please sign in to comment.