-
-
Notifications
You must be signed in to change notification settings - Fork 200
ci: use Alpine Linux Docker image #1261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7a9ceb3
ci: build Alpine Linux Docker image
jpnurmi d93f978
wip: use Alpine Linux Docker image
jpnurmi 302f110
try workflow_call
jpnurmi 26a8d26
try again
jpnurmi 35b4608
switch to getsentry/sentry-native-alpine
jpnurmi f879e6f
filter branches, drop workflow_call
jpnurmi f035848
move the most important deps back to ci.yml for discoverability
jpnurmi 59e775c
remove temp workflow_call
jpnurmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # docker build --build-arg BASE=alpine:3.21 | ||
| ARG BASE=alpine:latest | ||
| FROM ${BASE} | ||
|
|
||
| RUN apk update | ||
| RUN apk add \ | ||
| bash \ | ||
| build-base \ | ||
| cargo \ | ||
| clang \ | ||
| cmake \ | ||
| curl \ | ||
| file \ | ||
| git \ | ||
| icu \ | ||
| linux-headers \ | ||
| lsb-release-minimal \ | ||
| mitmproxy \ | ||
| moreutils \ | ||
| perl \ | ||
| powershell \ | ||
| python3 \ | ||
| python3-dev \ | ||
| py3-pip \ | ||
| sudo \ | ||
| tar \ | ||
| tree \ | ||
| wget | ||
|
|
||
| RUN curl -sSL --retry 5 https://dot.net/v1/dotnet-install.sh | bash -eo pipefail /dev/stdin --channel 8.0 --install-dir /usr/share/dotnet | ||
| RUN ln -s /usr/share/dotnet/dotnet /usr/local/bin/dotnet | ||
|
|
||
| # https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/build/install-python.sh | ||
| COPY pip.conf /etc/pip.conf | ||
| ENV PIPX_BIN_DIR=/opt/pipx_bin | ||
| ENV PIPX_HOME=/opt/pipx | ||
| RUN python3 -m pip install pipx | ||
| RUN python3 -m pipx ensurepath | ||
| ENV PATH="PIPX_BIN_DIR:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [global] | ||
| break-system-packages = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Docker | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| paths: | ||
| - '.github/docker/**' | ||
jpnurmi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| alpine: | ||
| name: Build alpine:${{ matrix.version }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| version: | ||
| - '3.21' | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| env: | ||
| IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/sentry-native-alpine:${{ matrix.version }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build ${{ env.IMAGE_NAME }} | ||
| run: docker build --build-arg BASE=alpine:${{ matrix.version }} -t ${{ env.IMAGE_NAME }} . | ||
| working-directory: .github/docker/alpine | ||
|
|
||
| - name: Push ${{ env.IMAGE_NAME }} | ||
| run: docker push ${{ env.IMAGE_NAME }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.