fix: Fixes action workflows.
All checks were successful
Release code / build (push) Successful in 5m33s
All checks were successful
Release code / build (push) Successful in 5m33s
This commit is contained in:
parent
ea0a953b0e
commit
356cfb8dca
3 changed files with 11 additions and 11 deletions
|
@ -34,7 +34,7 @@ jobs:
|
|||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build ./backend --tag ghcr.io/imterah/hermes:$GITHUB_REF_NAME
|
||||
docker build . --tag ghcr.io/imterah/hermes:$GITHUB_REF_NAME
|
||||
|
||||
- name: Upload Docker image
|
||||
run: |
|
||||
|
|
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM golang:latest AS build
|
||||
WORKDIR /build
|
||||
COPY . /build
|
||||
RUN cd backend; bash build.sh
|
||||
FROM busybox:stable-glibc AS run
|
||||
WORKDIR /app
|
||||
COPY --from=build /build/backend/backends.prod.json /app/backends.json
|
||||
COPY --from=build /build/backend/api/api /app/hermes
|
||||
COPY --from=build /build/backend/sshbackend/sshbackend /app/sshbackend
|
||||
ENTRYPOINT ["/app/hermes", "--backends-path", "/app/backends.json"]
|
|
@ -1,10 +0,0 @@
|
|||
FROM golang:latest AS build
|
||||
WORKDIR /build
|
||||
COPY . /build
|
||||
RUN bash build.sh
|
||||
FROM busybox:stable-glibc AS run
|
||||
WORKDIR /app
|
||||
COPY --from=build /build/backends.prod.json /app/backends.json
|
||||
COPY --from=build /build/api/api /app/hermes
|
||||
COPY --from=build /build/sshbackend/sshbackend /app/sshbackend
|
||||
ENTRYPOINT ["/app/hermes", "--backends-path", "/app/backends.json"]
|
Loading…
Add table
Add a link
Reference in a new issue