Skip to content
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

add rqlite based builder #1121

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
10 changes: 7 additions & 3 deletions .github/workflows/publish_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ on:
branches: [master, main]

env:
DEPS_IMAGE_NAME: "hstreamdb/hstream-builder"
IMAGE_NAME: "hstreamdb/hstream-builder"

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
hs_tag: ["latest", "rqlite_8.10.7"]
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Build
run: |
docker build . -f docker/Dockerfile.deps -t ${DEPS_IMAGE_NAME}:latest
docker build . -f docker/Dockerfile.deps --build-arg HS_TAG=${{ matrix.hs_tag }} -t ${IMAGE_NAME}:${{ matrix.hs_tag }}

- name: Login to Docker Hub
uses: docker/login-action@v1
Expand All @@ -26,4 +30,4 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push image to dockerhub
run: docker push ${DEPS_IMAGE_NAME}:latest
run: docker push ${IMAGE_NAME}:${{ matrix.hs_tag }}
3 changes: 2 additions & 1 deletion docker/Dockerfile.deps
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM hstreamdb/haskell
ARG HS_TAG=latest
FROM hstreamdb/haskell:${HS_TAG}

ARG CABAL_MIRROR_NAME="hackage.haskell.org"
ARG CABAL_MIRROR_URL="http://hackage.haskell.org/"
Expand Down