8000 docd: fix Dockerfile after change to Go 1.19 by jonathaningram · Pull Request #124 · sajari/docconv · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docd: fix Dockerfile after change to Go 1.19 #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions .github/workflows/docd.yml
8000
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,27 @@ jobs:
name: Publish Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- id: meta
uses: docker/metadata-action@v3
with:
images: sajari/docd
labels: |
org.opencontainers.image.description=A tool which exposes code.sajari.com/docconv as a service
org.opencontainers.image.title=docd
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,format=long
- uses: docker/build-push-action@v2
with:
context: docd
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
push: true
- uses: actions/checkout@v2
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- id: meta
uses: docker/metadata-action@v3
with:
images: sajari/docd
labels: |
org.opencontainers.image.description=A tool which exposes code.sajari.com/docconv as a service
org.opencontainers.image.title=docd
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,format=long
- uses: docker/build-push-action@v2
with:
context: .
file: docd/Dockerfile
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
push: true
9 changes: 4 additions & 5 deletions docd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM golang:1.19 AS build

WORKDIR /go/src/github.com/sajari/docconv/docd
COPY main.go .
RUN go get -v ./
RUN go build .
WORKDIR /app
COPY . ./
RUN go build ./docd/...

################################################################################

Expand All @@ -22,6 +21,6 @@ RUN apt-get update \

EXPOSE 8888

COPY --from=build /go/bin/docd /docd
COPY --from=build /app/docd /docd
ENTRYPOINT ["/docd"]
CMD ["--help"]
0