Skip to content
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

Publish multi-arch images with goreleaser #509

Merged
merged 7 commits into from Aug 19, 2021

Conversation

PrasadG193
Copy link
Collaborator

@PrasadG193 PrasadG193 commented Aug 15, 2021

ISSUE TYPE
  • Feature Pull Request
SUMMARY
  • Switch to goreleaser for building and publishing release
  • Set BotKube version with build args
  • Use docker manifest to build multi-arch image
  • Update CI pipeline to build and push image using goreleaser

Fixes #504

$ docker manifest inspect ghcr.io/prasadg193/botkube:latest
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1370,
         "digest": "sha256:64d94709256eb85452afa06aa15574724266fa6b82b70654ff6b03c467d5a5e4",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1160,
         "digest": "sha256:525d79e629637fd1ae3530223fa380aea26ed299a1fd9ae2787721f4cc33dad5",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1160,
         "digest": "sha256:ef72bc09078929c8aed1161f86c2c86523f6fac664094a034c737ffd582f3ea7",
         "platform": {
            "architecture": "arm64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1160,
         "digest": "sha256:990cd2c6b522a3a69ba73ee83ed0ae306102369f02d09891de8fbfd024d37e87",
         "platform": {
            "architecture": "arm",
            "os": "linux",
            "variant": "v7"
         }
      }
   ]
}

xunholy and others added 5 commits August 9, 2021 11:45
Signed-off-by: Michael Fornaro <20387402+xUnholy@users.noreply.github.com>

Fix linting and update to use v2 checkout action

Signed-off-by: Michael Fornaro <20387402+xUnholy@users.noreply.github.com>

remove duplicate ci build and add missing slash

Signed-off-by: Michael Fornaro <20387402+xUnholy@users.noreply.github.com>
Signed-off-by: Michael Fornaro <20387402+xUnholy@users.noreply.github.com>
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
@PrasadG193 PrasadG193 changed the title Add multi-arch image support Publish multi-arch images with goreleaser Aug 15, 2021
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
@PrasadG193
Copy link
Collaborator Author

@xunholy PTAL

@PrasadG193
Copy link
Collaborator Author

Ref: Building multi-arch images with goreleaser: https://carlosbecker.com/posts/multi-platform-docker-images-goreleaser-gh-actions/

.goreleaser.yml Show resolved Hide resolved
.github/workflows/artifacts.yml Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
@PrasadG193 PrasadG193 merged commit f349853 into kubeshop:develop Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to goreleaser to building and publishing images
3 participants