Skip to content

Commit

Permalink
Merge pull request #160 from olivierdalang/assert_version_txt_is_up_t…
Browse files Browse the repository at this point in the history
…o_date

adds a CI check to assert CURRENT_VERSION.txt is up to date
  • Loading branch information
olivierdalang authored Nov 11, 2020
2 parents d9cd7d1 + 31610f3 commit c9a1490
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/docker-test-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: "assert version is up to date"
run: |
LAST_VERSION=$(ls delta | sort -r | sed '/^delta_/!d' | head -n 1 | cut -d_ -f2)
CUR_VERSION=$(cat system/CURRENT_VERSION.txt)
[[ "${LAST_VERSION}" == "${CUR_VERSION}" ]] || (echo "Version mismatch ${LAST_VERSION} != ${CUR_VERSION}" && exit 1)
- name: "build dockerfile"
run: docker build -f .docker/Dockerfile --build-arg POSTGIS_VERSION=${PGIS} --tag opengisch/qgep_datamodel:${GITHUB_REF##*/}-${PGIS} .
env:
Expand Down
2 changes: 1 addition & 1 deletion system/CURRENT_VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.5.3

0 comments on commit c9a1490

Please sign in to comment.