Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 7, 2020
1 parent 1c3f534 commit 4e4d322
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set version
run: echo ${{ github.event.release.tag_name }} > CURRENT_VERSION.txt

- name: "build dockerfile"
run: docker build -f .docker/Dockerfile --tag opengisch/siro:latest .

- name: "initialize container"
run: |
docker run -d -p 5432:5432 --name siro opengisch/siro:latest
docker exec siro init_db.sh wait
docker exec siro init_db.sh build -b ${{ github.event.release.tag_name }}
docker exec -e PGSERVICE=pg_siro_demo siro init_db.sh build -d -b ${{ github.event.release.tag_name }}
- name: "create archive"
run: |
zip -r project-release.zip project README.md
Expand Down
File renamed without changes.
10 changes: 3 additions & 7 deletions data_model/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
set -e

SRID=2056
BASELINE=0.0.0 # pum base line

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

Expand All @@ -27,7 +26,7 @@ if [[ -z ${PGSERVICE} ]]; then
fi


while getopts ":drfs:p:b:" opt; do
while getopts ":drfs:p:" opt; do
case $opt in
f)
force=True
Expand All @@ -38,10 +37,6 @@ while getopts ":drfs:p:b:" opt; do
d)
demo_data=True
;;
b)
BASELINE=$OPTARG
echo "-b was triggered, pum will set base line as ${BASELINE}" >&2
;;
s)
SRID=$OPTARG
echo "-s was triggered, SRID: $SRID" >&2
Expand Down Expand Up @@ -96,4 +91,5 @@ fi

${DIR}/views/create_views.py --pg_service ${PGSERVICE} --srid=${SRID}

pum baseline -p ${PGSERVICE} -t siro_sys.pum_info -d ${DIR}/delta/ -b ${BASELINE}
VERSION=$(cat ${DIR}/../CURRENT_VERSION.txt)
pum baseline -p ${PGSERVICE} -t siro_sys.pum_info -d ${DIR}/delta/ -b ${VERSION}

0 comments on commit 4e4d322

Please sign in to comment.