From e664bec56af362e39a84332845bdd8feed64aa1b Mon Sep 17 00:00:00 2001 From: Aaron Jeyaraj Date: Mon, 7 Oct 2024 22:16:22 +0000 Subject: [PATCH] Change Tags and Dockerfile --- .goreleaser.yml | 10 +++++----- Dockerfile.goreleaser | 4 +--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 255cf42..1bd7d1d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,14 +21,14 @@ 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" @@ -36,10 +36,10 @@ dockers: 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: diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser index e1674b2..a696cfc 100644 --- a/Dockerfile.goreleaser +++ b/Dockerfile.goreleaser @@ -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"]