Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lillian committed Dec 19, 2023
1 parent ca6e24e commit 01b9047
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
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 }}
13 changes: 13 additions & 0 deletions Dockerfile
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

0 comments on commit 01b9047

Please sign in to comment.