forked from commercialhaskell/curator
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
4 changed files
with
51 additions
and
17 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,12 @@ | ||
FROM fpco/pid1:18.04 | ||
|
||
ENV LANG C.UTF-8 | ||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update && \ | ||
apt-get install curl -y && \ | ||
curl -sSL https://get.haskellstack.org/ | sh && \ | ||
unset DEBIAN_FRONTEND | ||
RUN stack update | ||
COPY stack.yaml package.yaml /src/ | ||
RUN stack setup --stack-yaml /src/stack.yaml | ||
RUN stack build --only-snapshot --stack-yaml /src/stack.yaml |
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,9 @@ | ||
FROM fpco/pid1:18.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update && \ | ||
wget -qO- https://get.haskellstack.org/ | sh -x && \ | ||
apt-get install -y \ | ||
ca-certificates \ | ||
libgmp-dev \ | ||
netbase |
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,30 @@ | ||
name: Base image | ||
|
||
on: | ||
push: | ||
branches: [base] | ||
|
||
jobs: | ||
push: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Log into Github registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin | ||
|
||
- name: Build base run image | ||
run: | | ||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/base-run:$GITHUB_SHA | ||
docker build . -f .github/workflows/Dockerfile.base-run --tag $IMAGE_ID | ||
docker push $IMAGE_ID | ||
echo Pushed new base image $IMAGE_ID | ||
- name: Build base build image | ||
run: | | ||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/base-build:$GITHUB_SHA | ||
docker build . -f .github/workflows/Dockerfile.base-build --tag $IMAGE_ID | ||
docker push $IMAGE_ID | ||
echo Pushed new base build image $IMAGE_ID |
This file was deleted.
Oops, something went wrong.