Skip to content

Commit 862c60b

Browse files
Install from git tag
1 parent 5b3f96a commit 862c60b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
. \
1919
--file Dockerfile \
2020
--tag amulet-editor:latest \
21-
--build-arg AMULET_VERSION=PATH:$PWD
21+
--build-arg AMULET_VERSION=CUSTOM:git+https://github.com/Amulet-Team/Amulet-Map-Editor.git@${{ github.event.release.tag_name }}
2222
2323
- name: Save Docker image to tar archive
2424
run: |

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ RUN apt-get update && apt install libgtk-3-dev dbus-x11 wget libnotify4 -y
33
RUN pip install --upgrade pip
44
RUN wget https://extras.wxpython.org/wxPython4/extras/linux/gtk3/debian-11/wxPython-4.2.0-cp39-cp39-linux_x86_64.whl && pip install wxPython-4.2.0-cp39-cp39-linux_x86_64.whl
55
ARG AMULET_VERSION=RELEASE # defaults to the latest version if no arg is given in build command.
6-
RUN if [ "$(echo "$AMULET_VERSION" | cut -c1-5)" = "PATH:" ]; then \
7-
pip install "$(echo "$AMULET_VERSION" | cut -c6-)"; \
6+
RUN if [ "$(echo "$AMULET_VERSION" | cut -c1-7)" = "CUSTOM:" ]; then \
7+
pip install "$(echo "$AMULET_VERSION" | cut -c8-)"; \
88
elif [ "$AMULET_VERSION" = "RELEASE" ]; then \
99
pip install --upgrade --upgrade-strategy eager amulet-map-editor; \
1010
elif [ "$AMULET_VERSION" = "BETA" ]; then \

0 commit comments

Comments
 (0)