Skip to content

Commit

Permalink
Merge pull request #12 from gguridi/develop
Browse files Browse the repository at this point in the history
Publish directly with buildx.
  • Loading branch information
gguridi authored Dec 6, 2022
2 parents 03addd4 + 247d445 commit 1998fe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ jobs:
KAFKA_IMAGE: "gguridi/kafka:${{ matrix.scala_version }}-${{ matrix.kafka_version }}"
SCALA_VERSION: ${{ matrix.scala_version }}
KAFKA_VERSION: ${{ matrix.kafka_version }}
run: yarn run publish
run: yarn run publish-multiarch
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"start": "mockserver -p 80 -q -m /opt/api",
"build": "docker build -t $KAFKA_IMAGE --build-arg SCALA_VERSION=$SCALA_VERSION --build-arg KAFKA_VERSION=$KAFKA_VERSION .",
"build-multiarch": "docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t $KAFKA_IMAGE --build-arg SCALA_VERSION=$SCALA_VERSION --build-arg KAFKA_VERSION=$KAFKA_VERSION .",
"publish": "yarn run build-multiarch && docker push $KAFKA_IMAGE",
"publish-multiarch": "docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t $KAFKA_IMAGE --build-arg SCALA_VERSION=$SCALA_VERSION --build-arg KAFKA_VERSION=$KAFKA_VERSION .",
"publish": "yarn run build && docker push $KAFKA_IMAGE",
"docker-run": "docker run --name kafka-local -d -p 2181:2181 -p 9092:9092 -e KAFKA__ADVERTISED_HOST_NAME=localhost -e KAFKA__ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 $KAFKA_IMAGE",
"docker-stop": "docker rm -f kafka-local || true",
"test": "node ./node_modules/jest/bin/jest.js --forceExit --detectOpenHandles"
Expand Down

0 comments on commit 1998fe4

Please sign in to comment.