-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lillian
committed
Dec 19, 2023
1 parent
ca6e24e
commit 01b9047
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build debug Docker image | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'hacklabto/members-platform' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
# https://github.com/docker/build-push-action/issues/378 | ||
context: . | ||
file: Dockerfile | ||
push: false | ||
tags: | | ||
ghcr.io/hacklabto/members-platform:${{ github.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM alpine:latest AS builder | ||
|
||
RUN apk add go | ||
|
||
WORKDIR /build | ||
COPY . . | ||
RUN go build -o hl-web ./cmd/web | ||
# RUN go build -o hl-apply ./cmd/apply | ||
# RUN go build -o hl-memberizer ./cmd/memberizer | ||
# RUN go build -o hl-passwd-web ./cmd/passwd-web | ||
|
||
FROM alpine:latest | ||
COPY --from=builder /build/hl-web /usr/local/bin/hl-web |