-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
24aabfc
commit 8ebe9ba
Showing
3 changed files
with
52 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,36 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set environment up | ||
run: | | ||
docker compose pull | ||
docker compose build | ||
docker compose run --rm client npm install | ||
- name: Run specs | ||
env: | ||
JVM_OPTS: -Xmx3200m | ||
TEST_DATABASE_URL: jdbc:postgresql://db/planwise?user=planwise&password=planwise | ||
run: | | ||
docker compose run --rm -e JVM_OPTS -e TEST_DATABASE_URL app lein test | ||
docker compose run --rm client npm run test | ||
docker compose run --rm app lein check-format | ||
build: | ||
needs: test | ||
runs-on: ubuntu-22.04 | ||
env: | ||
DOCKER_REPOSITORY: 'instedd/planwise' | ||
DOCKER_USER: ${{ secrets.DOCKER_USER }} | ||
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build image & push to Docker Hub | ||
run: ./build.sh |
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
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 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
source <(curl -s https://raw.githubusercontent.com/manastech/ci-docker-builder/d3406587def914918666ef41c0637d6b739fdf7d/build.sh) | ||
|
||
dockerSetup | ||
echo $VERSION > VERSION | ||
echo $VERSION > resources/planwise/version | ||
|
||
dockerBuildAndPush | ||
# FIXME: build & push mapcache | ||
# FIXME: build & push mapserver | ||
# FIXME: build & push tools |