-
Notifications
You must be signed in to change notification settings - Fork 2
feat(self-hosted): Publishes chartcuterie image for self hosted #199
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
Closed
Closed
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bd884e4
ref: publish Docker image to GHCR
aldy505 869f4c4
ci: craft default release branch name is 'release'
aldy505 ae8ea58
ref: use ghcr image for devservices
aldy505 8899d9e
chore: Use bullseye image variant
aldy505 ba8293d
chore: add libpangocairo
aldy505 0b4551c
Merge branch 'getsentry:master' into ci/publish-docker-image
aldy505 605472f
ci: test on forks, I don't have arm64 runner laying around
aldy505 d4096ce
chore: bump canvas to next major version
aldy505 5f0c9e8
ci: remove debugging commands
aldy505 174bbbc
ci: conflicting job name
aldy505 07ca862
add permissions
hubertdeng123 bc564d4
revert dockerfile changes
hubertdeng123 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,62 @@ | ||
| name: Docker Image | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
| - release/** | ||
| jobs: | ||
| build-docker-image: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-24.04 | ||
| platform: amd64 | ||
| - os: ubuntu-24.04-arm | ||
| platform: arm64 | ||
| name: build-docker-image-${{ matrix.platform }} | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
|
|
||
| - name: Build and push chartcuterie image | ||
| uses: getsentry/action-build-and-push-images@b172ab61a5f7eabd58bd42ce231b517e79947c01 | ||
| with: | ||
| image_name: 'chartcuterie' | ||
| platforms: linux/${{ matrix.platform }} | ||
| dockerfile_path: './Dockerfile' | ||
| ghcr: ${{ github.event_name != 'pull_request' }} | ||
| tag_suffix: -${{ matrix.platform }} | ||
| publish_on_pr: true | ||
| google_ar: false | ||
| tag_nightly: false | ||
| tag_latest: false | ||
|
|
||
| assemble-chartcuterie-image: | ||
| runs-on: ubuntu-latest | ||
| needs: [build-docker-image] | ||
| if: ${{ (github.ref_name == 'master' || startsWith(github.ref_name, 'release/')) && github.event_name != 'pull_request' }} | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
|
|
||
| - run: docker login --username '${{ github.actor }}' --password-stdin ghcr.io <<< "$GHCR_TOKEN" | ||
| env: | ||
| GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 | ||
|
|
||
| - name: Create multiplatform manifests | ||
| run: | | ||
| docker buildx imagetools create \ | ||
| --tag ghcr.io/getsentry/chartcuterie:${{ github.event.pull_request.head.sha || github.sha }} \ | ||
| --tag ghcr.io/getsentry/chartcuterie:nightly \ | ||
| ghcr.io/getsentry/chartcuterie:${{ github.event.pull_request.head.sha || github.sha }}-amd64 \ | ||
| ghcr.io/getsentry/chartcuterie:${{ github.event.pull_request.head.sha || github.sha }}-arm64 |
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,28 @@ | ||
| name: Release GHCR Versioned Image | ||
|
|
||
| on: | ||
| release: | ||
| types: [prereleased, released] | ||
|
|
||
| jobs: | ||
| release-ghcr-version-tag: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Log in to GitHub Container Registry | ||
| uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Tag release version | ||
| run: | | ||
| docker buildx imagetools create --tag \ | ||
| ghcr.io/getsentry/chartcuterie:${{ github.ref_name }} \ | ||
| ghcr.io/getsentry/chartcuterie:${{ github.sha }} | ||
|
|
||
| - name: Tag latest version | ||
| run: | | ||
| docker buildx imagetools create --tag \ | ||
| ghcr.io/getsentry/chartcuterie:latest \ | ||
| ghcr.io/getsentry/chartcuterie:${{ github.sha }} | ||
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
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
Oops, something went wrong.
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.