forked from shiwano/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from HENNGE/build-maru
ci: add GHA to build maru
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,59 @@ | ||
# Based on : https://github.com/temporalio/maru/blob/master/.github/workflows/docker.yaml | ||
name: Build and publish maru | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- temporal-bench | ||
- .github/workflows/build_maru.yaml | ||
|
||
jobs: | ||
build: | ||
name: Build and publish maru | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: temporalio/maru | ||
|
||
- name: Calculate Docker image labels | ||
run: | | ||
echo "GIT_SHA=$(git rev-parse HEAD)" >> "$GITHUB_ENV" | ||
echo "GIT_REF=$(git rev-parse --abbrev-ref HEAD)" >> "$GITHUB_ENV" | ||
echo "BUILD_DATE=$(git show -s --format=%cI)" >> "$GITHUB_ENV" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: ghcr.io/HENNGE/maru:latest | ||
context: worker/ | ||
platforms: linux/amd64,linux/arm64 | ||
labels: | | ||
org.opencontainers.image.title=maru | ||
org.opencontainers.image.description=Benchmarks for Temporal workflows | ||
org.opencontainers.image.url=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.source=${{ github.event.repository.clone_url }} | ||
org.opencontainers.image.version=${{ env.GIT_REF }} | ||
org.opencontainers.image.created=${{ env.BUILD_DATE }} | ||
org.opencontainers.image.revision=${{ env.GIT_SHA }} | ||
org.opencontainers.image.licenses=MIT |