Skip to content

Commit

Permalink
chore: change tactics, try use the docker CLI instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Oct 29, 2020
1 parent 1ae34c3 commit 58b4883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
39 changes: 5 additions & 34 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,44 +44,15 @@ jobs:
asset_name: ${{ fromJson(steps.set_package_info.outputs.packageJson).package_name }}
tag: ${{ github.ref }}

build-musl-release-node10:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: set_package_info
uses: docker://pactfoundation/pact-js-musl:10
- name: Upload Release Assets
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ fromJson(steps.set_package_info.outputs.packageJson).staged_tarball }}
asset_name: ${{ fromJson(steps.set_package_info.outputs.packageJson).package_name }}
tag: ${{ github.ref }}

build-musl-release-node12:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo ${{ matrix.node }}
- id: set_package_info
uses: docker://pactfoundation/pact-js-musl:12
- name: Upload Release Assets
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ fromJson(steps.set_package_info.outputs.packageJson).staged_tarball }}
asset_name: ${{ fromJson(steps.set_package_info.outputs.packageJson).package_name }}
tag: ${{ github.ref }}

build-musl-release-node14:
build-musl-release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 14]
steps:
- uses: actions/checkout@v2
- run: echo ${{ matrix.node }}
- id: set_package_info
uses: docker://pactfoundation/pact-js-musl:14
run: docker run --rm -v $(pwd):/home/rust/src -t pactfoundation/pact-js-musl:${{ matrix.node-version }}
- name: Upload Release Assets
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
Expand Down
1 change: 1 addition & 0 deletions native/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apk add --no-cache curl bash python3 gcc musl-dev libstdc++ ca-certificates
USER rust
RUN mkdir -p /home/rust/bin /home/rust/src
RUN touch /home/rust/.bashrc && touch /home/rust/.profile
ENV HOME /home/rust

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-host x86_64-unknown-linux-musl
ENV PATH=/home/rust/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Expand Down

0 comments on commit 58b4883

Please sign in to comment.