-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
27 changed files
with
1,688 additions
and
3,223 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -19,17 +19,15 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Upgrade pip | ||
- name: Install Hatch | ||
run: | | ||
pip install --upgrade pip | ||
pip --version | ||
- name: Install Poetry | ||
run: | | ||
pip install poetry | ||
poetry --version | ||
python -m pip install --upgrade pip | ||
python -m pip install -q hatch | ||
hatch env create | ||
hatch --version | ||
- name: Build package | ||
run: | | ||
poetry build --ansi | ||
hatch build | ||
- name: Publish package on PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
|
@@ -49,14 +47,12 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Upgrade pip | ||
run: | | ||
pip install --upgrade pip | ||
pip --version | ||
- name: Install Poetry | ||
- name: Install Hatch | ||
run: | | ||
pip install poetry | ||
poetry --version | ||
python -m pip install --upgrade pip | ||
python -m pip install -q hatch | ||
hatch env create | ||
hatch --version | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
|
@@ -68,8 +64,8 @@ jobs: | |
password: ${{ secrets.DOCKER_TOKEN }} | ||
- name: Declare Version Variable | ||
run: | | ||
PACKAGE_VERSION=$(poetry version --short) | ||
PACKAGE_NAME=$(poetry version | awk '{ print $1 }') | ||
PACKAGE_VERSION=$(hatch version) | ||
PACKAGE_NAME=$(hatch project metadata | jq -r .name) | ||
echo PACKAGE_VERSION=${PACKAGE_VERSION} >> $GITHUB_ENV | ||
echo PACKAGE_NAME=${PACKAGE_NAME} >> $GITHUB_ENV | ||
- name: Docker Image Building and Publishing | ||
|
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
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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ COPY camply/ /tmp/camply/camply/ | |
MAINTAINER Justin Flannery <[email protected]> | ||
LABEL description="camply, the campsite finder" | ||
|
||
COPY requirements/prod.txt /tmp/camply/requirements.txt | ||
COPY requirements/requirements-prod.txt /tmp/camply/requirements.txt | ||
|
||
RUN python -m pip install -r /tmp/camply/requirements.txt && \ | ||
python -m pip install /tmp/camply --no-dependencies && \ | ||
|
@@ -20,7 +20,7 @@ ENV CAMPLY_LOG_HANDLER="PYTHON" | |
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
RUN _CAMPLY_COMPLETE=bash_source camply > /root/.camply-complete.bash && \ | ||
echo "[[ ! -f /root/.camply-complete.bash ]] || source /root/.camply-complete.bash" >> /root/.bashrc | ||
RUN _CAMPLY_COMPLETE=bash_source camply > ${HOME}/.camply-complete.bash && \ | ||
echo "[[ ! -f ${HOME}/.camply-complete.bash ]] || source ${HOME}/.camply-complete.bash" >> ${HOME}/.bashrc | ||
|
||
CMD ["camply", "--help"] |
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
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
Oops, something went wrong.