Skip to content

Commit

Permalink
handle memberupdate event
Browse files Browse the repository at this point in the history
  • Loading branch information
timofey-kurakin-m10 authored and ivan-kripakov-m10 committed Dec 18, 2023
1 parent 1e7cc4e commit 9eda32c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
66 changes: 33 additions & 33 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ builds:
env:
- CGO_ENABLED=0
goos:
- freebsd
- windows
#- freebsd
#- windows
- darwin
- linux
goarch:
- amd64
- arm64
- arm
#- arm64
#- arm
goarm:
- '7'
ldflags:
Expand Down Expand Up @@ -124,7 +124,7 @@ snapshot:

dockers:
- image_templates:
- dkron/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/m10-payments/{{ .ProjectName }}:{{ .Version }}-amd64
dockerfile: Dockerfile.release
use: buildx
goos: linux
Expand All @@ -145,39 +145,39 @@ dockers:
build_flag_templates:
- --platform=linux/amd64

- image_templates:
- dkron/{{ .ProjectName }}:{{ .Version }}-arm64
dockerfile: Dockerfile.release
use: buildx
goos: linux
goarch: arm64
ids: *docker-ids
build_flag_templates:
- --platform=linux/arm64/v8

- image_templates:
- dkron/{{ .ProjectName }}:{{ .Version }}-armv7
dockerfile: Dockerfile.release
use: buildx
goos: linux
goarch: arm
goarm: '7'
ids: *docker-ids
build_flag_templates:
- --platform=linux/arm/v7
#- image_templates:
# - ghcr.io/m10-payments/{{ .ProjectName }}:{{ .Version }}-arm64
# dockerfile: Dockerfile.release
# use: buildx
# goos: linux
# goarch: arm64
# ids: *docker-ids
# build_flag_templates:
# - --platform=linux/arm64/v8

#- image_templates:
# - ghcr.io/m10-payments/{{ .ProjectName }}:{{ .Version }}-armv7
# dockerfile: Dockerfile.release
# use: buildx
# goos: linux
# goarch: arm
# goarm: '7'
# ids: *docker-ids
# build_flag_templates:
# - --platform=linux/arm/v7

docker_manifests:
- name_template: dkron/{{ .ProjectName }}:{{ .Version }}
- name_template: ghcr.io/m10-payments/{{ .ProjectName }}:{{ .Version }}
image_templates:
- dkron/{{ .ProjectName }}:{{ .Version }}-amd64
- dkron/{{ .ProjectName }}:{{ .Version }}-arm64
- dkron/{{ .ProjectName }}:{{ .Version }}-armv7
- ghcr.io/m10-payments/{{ .ProjectName }}:{{ .Version }}-amd64
#- dkron/{{ .ProjectName }}:{{ .Version }}-arm64
#- dkron/{{ .ProjectName }}:{{ .Version }}-armv7

- name_template: dkron/{{ .ProjectName }}:latest
- name_template: ghcr.io/m10-payments/{{ .ProjectName }}:latest
image_templates:
- dkron/{{ .ProjectName }}:{{ .Version }}-amd64
- dkron/{{ .ProjectName }}:{{ .Version }}-arm64
- dkron/{{ .ProjectName }}:{{ .Version }}-armv7
- ghcr.io/m10-payments/{{ .ProjectName }}:{{ .Version }}-amd64
#- dkron/{{ .ProjectName }}:{{ .Version }}-arm64
#- dkron/{{ .ProjectName }}:{{ .Version }}-armv7

changelog:
sort: asc
Expand Down
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ fury: $(LINUX_PKGS)
$(LINUX_PKGS):
fury push --as distribworks $@

PACKAGE_NAME := github.com/distribworks/dkron
GOLANG_CROSS_VERSION ?= v1.18.1
PACKAGE_NAME := ghcr.io/m10-payments/dkron
GOLANG_CROSS_VERSION ?= v1.21.5

.PHONY: release-dry-run
release-dry-run:
Expand All @@ -14,15 +14,15 @@ release-dry-run:
--privileged \
-v ${PWD}:/dkron \
-w /dkron \
-e GITHUB_TOKEN \
-e DOCKER_USERNAME \
-e DOCKER_PASSWORD \
-e DOCKER_REGISTRY \
-e GITHUB_TOKEN=${GH_TOKEN_WRITE_PACKAGES} \
#-e DOCKER_USERNAME \
#-e DOCKER_PASSWORD \
#-e DOCKER_REGISTRY \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--rm-dist --skip-validate --skip-publish --timeout=1h
--rm-dist --skip-validate --skip-publish --timeout=1h --parallelism=1

.PHONY: release
release:
Expand All @@ -31,10 +31,10 @@ release:
--privileged \
-v ${PWD}:/dkron \
-w /dkron \
-e GITHUB_TOKEN \
-e DOCKER_USERNAME \
-e DOCKER_PASSWORD \
-e DOCKER_REGISTRY \
-e GITHUB_TOKEN=${GH_TOKEN_WRITE_PACKAGES} \
#-e DOCKER_USERNAME \
#-e DOCKER_PASSWORD \
#-e DOCKER_REGISTRY \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
Expand Down

0 comments on commit 9eda32c

Please sign in to comment.