Skip to content

Commit

Permalink
Change Tags and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeyaraj-crusoe committed Oct 7, 2024
1 parent 6dad54e commit e664bec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ builds:
binary: '{{ .ProjectName }}'
dockers:
- image_templates:
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Version }}-amd64'
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}-amd64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
dockerfile: Dockerfile.goreleaser
- image_templates:
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Version }}-arm64'
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}-arm64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
dockerfile: Dockerfile.goreleaser
goarch: arm64
docker_manifests:
- name_template: 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Version }}'
- name_template: 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}'
image_templates:
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Version }}-amd64'
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Version }}-arm64'
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}-amd64'
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}-arm64'
signs:
- artifacts: checksum
args:
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
################################################################
FROM alpine

ARG CRUSOE_CSI_DRIVER_BINARY_NAME

# Need to get these updates for k8s mount-utils library to work properly
RUN apk update && \
apk add --no-cache e2fsprogs && \
apk add --no-cache blkid && \
rm -rf /var/cache/apk/*

COPY $CRUSOE_CSI_DRIVER_BINARY_NAME /usr/local/go/bin/crusoe-csi-driver
COPY crusoe-csi-driver /usr/local/go/bin/crusoe-csi-driver

ENTRYPOINT ["/usr/local/go/bin/crusoe-csi-driver"]

0 comments on commit e664bec

Please sign in to comment.