Skip to content

Commit d28ad6b

Browse files
Merge pull request #2 from getsentry/ghcr
publish cbtemulator to ghcr
2 parents d082515 + 699926a commit d28ad6b

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
push:
3+
branches: [main, test-me-*]
4+
tags:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: docker/setup-qemu-action@v3
13+
- uses: docker/setup-buildx-action@v3
14+
- run: docker login --username "$DOCKER_USER" --password "$DOCKER_PASS" ghcr.io
15+
env:
16+
DOCKER_USER: ${{ github.actor }}
17+
DOCKER_PASS: ${{ secrets.GITHUB_TOKEN }}
18+
if: github.event_name != 'pull_request'
19+
- uses: docker/build-push-action@v6
20+
with:
21+
platforms: linux/amd64,linux/arm64
22+
push: ${{ github.event_name != 'pull_request' }}
23+
build-args: GOOGLE_CLOUD_GO_VERSION=23c02d92c7a1747068eb1fc57dddbad23907d614
24+
tags: |
25+
ghcr.io/getsentry/cbtemulator:${{ github.sha }}
26+
ghcr.io/getsentry/cbtemulator:latest

Makefile

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)