mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
fix: Use correct binary link
This commit is contained in:
parent
30038f572b
commit
103bf61710
4 changed files with 9 additions and 5 deletions
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
<!-- next-header -->
|
<!-- next-header -->
|
||||||
## [Unreleased] - ReleaseDate
|
## [Unreleased] - ReleaseDate
|
||||||
|
|
||||||
|
#### Bug Fixes
|
||||||
|
|
||||||
|
- Correct the Linux binary link after switching to musl
|
||||||
|
|
||||||
## [1.1.0] - 2021-07-27
|
## [1.1.0] - 2021-07-27
|
||||||
|
|
||||||
#### Features
|
#### Features
|
||||||
|
|
|
@ -2,7 +2,7 @@ FROM ubuntu:20.04
|
||||||
ARG VERSION=1.1.0
|
ARG VERSION=1.1.0
|
||||||
ENV VERSION=${VERSION}
|
ENV VERSION=${VERSION}
|
||||||
RUN apt-get update && apt-get install -y wget
|
RUN apt-get update && apt-get install -y wget
|
||||||
RUN wget https://github.com/crate-ci/typos/releases/download/v${VERSION}/typos-v${VERSION}-x86_64-unknown-linux-gnu.tar.gz && \
|
RUN wget https://github.com/crate-ci/typos/releases/download/v${VERSION}/typos-v${VERSION}-x86_64-unknown-linux-musl.tar.gz && \
|
||||||
tar -xzvf typos-v${VERSION}-x86_64-unknown-linux-gnu.tar.gz && \
|
tar -xzvf typos-v${VERSION}-x86_64-unknown-linux-musl.tar.gz && \
|
||||||
mv typos /usr/local/bin
|
mv typos /usr/local/bin
|
||||||
ENTRYPOINT ["/usr/local/bin/typos"]
|
ENTRYPOINT ["/usr/local/bin/typos"]
|
||||||
|
|
|
@ -2,8 +2,8 @@ FROM ubuntu:20.04
|
||||||
ARG VERSION=1.1.0
|
ARG VERSION=1.1.0
|
||||||
ENV VERSION=${VERSION}
|
ENV VERSION=${VERSION}
|
||||||
RUN apt-get update && apt-get install -y wget
|
RUN apt-get update && apt-get install -y wget
|
||||||
RUN wget https://github.com/crate-ci/typos/releases/download/v${VERSION}/typos-v${VERSION}-x86_64-unknown-linux-gnu.tar.gz && \
|
RUN wget https://github.com/crate-ci/typos/releases/download/v${VERSION}/typos-v${VERSION}-x86_64-unknown-linux-musl.tar.gz && \
|
||||||
tar -xzvf typos-v${VERSION}-x86_64-unknown-linux-gnu.tar.gz && \
|
tar -xzvf typos-v${VERSION}-x86_64-unknown-linux-musl.tar.gz && \
|
||||||
mv typos /usr/local/bin
|
mv typos /usr/local/bin
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
WORKDIR /github/workspace
|
WORKDIR /github/workspace
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -18,7 +18,7 @@ from setuptools.command.install import install as orig_install
|
||||||
TYPOS_VERSION = '1.1.0'
|
TYPOS_VERSION = '1.1.0'
|
||||||
POSTFIX_SHA256 = {
|
POSTFIX_SHA256 = {
|
||||||
'linux': (
|
'linux': (
|
||||||
'x86_64-unknown-linux-gnu.tar.gz',
|
'x86_64-unknown-linux-musl.tar.gz',
|
||||||
'', # TODO: sha256 hexhash when we can generate it with release
|
'', # TODO: sha256 hexhash when we can generate it with release
|
||||||
),
|
),
|
||||||
'darwin': (
|
'darwin': (
|
||||||
|
|
Loading…
Reference in a new issue