Skip to content

Commit 991e10f

Browse files
committed
refactor
1 parent 4894336 commit 991e10f

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/pygeoapi-image.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
- "pygeoapi/**"
88
- "data/**"
99
- ".github/workflows/pygeoapi-image.yml"
10-
- "VERSION"
11-
- "docker/Dockerfile.pygeoapi"
1210
workflow_dispatch:
1311

1412
permissions:
@@ -26,18 +24,18 @@ jobs:
2624

2725
- name: Bump repo version
2826
run: |
29-
VERSION=$(cat VERSION)
27+
VERSION=$(cat pygeoapi/VERSION)
3028
IFS='.' read -r MAJ MIN PATCH <<<"$VERSION"
3129
PATCH=$((PATCH+1))
3230
NEW_VERSION="$MAJ.$MIN.$PATCH"
33-
echo "$NEW_VERSION" > VERSION
31+
echo "$NEW_VERSION" > pygeoapi/VERSION
3432
echo "VERSION=$NEW_VERSION" >> "$GITHUB_ENV"
3533
3634
- name: Commit version bump
3735
run: |
3836
git config user.name "GitHub Actions"
3937
git config user.email "actions@github.com"
40-
git add VERSION
38+
git add pygeoapi/VERSION
4139
git commit -m "chore: bump repo version to $VERSION" && git push || echo "No changes to commit"
4240
4341
- name: Get pygeoapi version
@@ -57,7 +55,7 @@ jobs:
5755
uses: docker/build-push-action@v6
5856
with:
5957
context: .
60-
file: ./docker/Dockerfile.pygeoapi
58+
file: ./pygeoapi/docker/Dockerfile.pygeoapi
6159
push: true
6260
build-args: |
6361
REPO_VERSION=${{ env.VERSION }}
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN PY_VER=$(python3 -c 'import pkg_resources;print(pkg_resources.get_distributi
3636
&& echo "${PY_VER}-${REPO_VERSION}" > /VERSION
3737

3838
# Add init script
39-
COPY docker/init.sh /init.sh
39+
COPY pygeoapi/docker/init.sh /init.sh
4040
RUN chmod +x /init.sh
4141

4242
ENTRYPOINT ["/init.sh"]
File renamed without changes.

0 commit comments

Comments
 (0)