Skip to content

Commit f26e779

Browse files
committed
fix gh install
1 parent 5a472a9 commit f26e779

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
haskell: true
3030
large-packages: true
3131
swap-storage: false
32+
docker-images: false
3233

3334
- name: Checkout repository
3435
uses: actions/checkout@v3

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ RUN pip install --no-cache-dir --ignore-installed --extra-index-url https://down
3737

3838
RUN git clone https://github.com/Dao-AILab/flash-attention.git -b v2.7.4.post1
3939
RUN cd flash-attention/hopper && MAX_JOBS=1 NVCC_THREADS=1 FLASH_ATTN_CUDA_ARCHS=90 python setup.py bdist_wheel
40-
RUN apt-get install gh
40+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | \
41+
dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \
42+
chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && \
43+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | \
44+
tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
45+
apt-get update && \
46+
apt-get install -y gh
4147
RUN gh release create v2.7.4.post1 dist/*.whl --title "Release v2.7.4.post1" --notes "Release .whl package" \
4248
&& echo "Uploaded to GitHub Releases"

0 commit comments

Comments
 (0)