Skip to content

Commit 73a497e

Browse files
committed
fix: docker references and test
1 parent e3db0e5 commit 73a497e

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
paths:
66
- '.github/workflows/build.yml'
7+
- 'Dockerfile'
78
- '**/*.py'
89
branches:
910
- '**'
@@ -12,6 +13,7 @@ on:
1213
pull_request:
1314
paths:
1415
- '.github/workflows/build.yml'
16+
- 'Dockerfile'
1517
- '**/*.py'
1618
workflow_dispatch: ~
1719

@@ -49,11 +51,17 @@ jobs:
4951
runs-on: ubuntu-latest
5052
steps:
5153
- uses: actions/checkout@v4
52-
- uses: actions/setup-python@v5
53-
with:
54-
python-version: '3.13'
55-
- name: Build Docker image
56-
run: docker build . -t justintime50/homebrew-releaser
54+
- name: Build and run Docker image
55+
run: |
56+
docker build . -t justintime50/homebrew-releaser
57+
docker run -e INPUT_SKIP_COMMIT=true \
58+
-e INPUT_DEBUG=true \
59+
-e GITHUB_REPOSITORY=justintime50/homebrew-releaser \
60+
-e INPUT_HOMEBREW_OWNER=justintime50 \
61+
-e INPUT_HOMEBREW_TAP=homebrew-formulas \
62+
-e INPUT_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
63+
-e "INPUT_INSTALL=install-instructions-here" \
64+
--rm justintime50/homebrew-releaser
5765
coverage:
5866
if: github.ref == 'refs/heads/main'
5967
runs-on: ubuntu-latest

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COPY --chown=linuxbrew:linuxbrew homebrew_releaser homebrew_releaser
44
COPY --chown=linuxbrew:linuxbrew setup.py setup.py
55

66
RUN brew install python@3.13 \
7-
&& python3 -m venv venv \
8-
&& venv/bin/pip install .
7+
&& python3 -m venv /home/linuxbrew/venv \
8+
&& /home/linuxbrew/venv/bin/pip install .
99

10-
ENTRYPOINT [ "venv/bin/python3", "homebrew_releaser/app.py" ]
10+
ENTRYPOINT [ "/home/linuxbrew/venv/bin/python3", "/home/linuxbrew/homebrew_releaser/app.py" ]

0 commit comments

Comments
 (0)