Skip to content

Commit

Permalink
feat: add multi-arch amd64 and arm64 support for agent docker (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
abalias committed Apr 28, 2023
1 parent 91a2ebc commit dc2608c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -50,6 +50,10 @@ jobs:
registry: ghcr.io
username: ${{ secrets.ATALA_GITHUB_ACTOR }}
password: ${{ secrets.ATALA_GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Release
env:
GIT_AUTHOR_EMAIL: ${{ steps.import_gpg.outputs.email }}
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Expand Up @@ -740,10 +740,10 @@ releaseProcess := Seq[ReleaseStep](
runClean,
runTest,
setReleaseVersion,
ReleaseStep(releaseStepTask(prismAgentServer / Docker / publish)),
ReleaseStep(releaseStepTask(prismAgentServer / Docker / stage)),
sys.env
.get("RELEASE_MEDIATOR") match {
case Some(value) => ReleaseStep(releaseStepTask(mediator / Docker / publish))
case Some(value) => ReleaseStep(releaseStepTask(mediator / Docker / stage))
case None =>
ReleaseStep(action = st => {
println("INFO: prism mediator release disabled!")
Expand Down
6 changes: 6 additions & 0 deletions package.json
Expand Up @@ -44,6 +44,12 @@
"prepareCmd": "sbt \"release release-version ${nextRelease.version} next-version ${nextRelease.version}-SNAPSHOT with-defaults\""
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "docker buildx build --platform=linux/arm64,linux/amd64 --push -t ghcr.io/input-output-hk/prism-agent:${nextRelease.version} ./prism-agent/service/server/target/docker/stage"
}
],
[
"@semantic-release/changelog",
{
Expand Down

0 comments on commit dc2608c

Please sign in to comment.