@@ -34,22 +34,22 @@ jobs:
34
34
GOEXPERIMENT : boringcrypto
35
35
run : go test ./...
36
36
-
37
- name : Build and Publish
37
+ name : Build and Publish (Dry Run)
38
38
uses : goreleaser/goreleaser-action@v3
39
- if : ${{ startsWith(github.ref, 'refs/tags/') }}
39
+ if : ${{ ! startsWith(github.ref, 'refs/tags/') }}
40
40
with :
41
41
version : latest
42
- args : release --clean
42
+ args : release --skip-publish -- clean --snapshot
43
43
env :
44
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
45
GOEXPERIMENT : boringcrypto
46
46
-
47
- name : Build and Publish (Dry Run)
47
+ name : Build and Publish
48
48
uses : goreleaser/goreleaser-action@v3
49
- if : ${{ ! startsWith(github.ref, 'refs/tags/') }}
49
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
50
50
with :
51
51
version : latest
52
- args : release --skip-publish -- clean --snapshot
52
+ args : release --clean
53
53
env :
54
54
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55
55
GOEXPERIMENT : boringcrypto
74
74
name : Set up Docker Buildx
75
75
uses : docker/setup-buildx-action@v2
76
76
-
77
- name : Login to DockerHub
77
+ name : Login to GitHub Container Registry
78
78
if : github.event_name != 'pull_request'
79
79
uses : docker/login-action@v2
80
80
with :
89
89
tags : ghcr.io/${{ steps.meta.outputs.tags }}
90
90
labels : ${{ steps.meta.outputs.labels }}
91
91
platforms : linux/amd64,linux/arm64
92
+ -
93
+ name : Login to Cloudsmith Registry
94
+ if : github.event_name != 'pull_request'
95
+ uses : docker/login-action@v2
96
+ with :
97
+ registry : docker.eventstore.com
98
+ username : ${{ secrets.CLOUDSMITH_CICD_USER }}
99
+ password : ${{ secrets.CLOUDSMITH_CICD_TOKEN }}
100
+ -
101
+ name : Push to Cloudsmith
102
+ uses : docker/build-push-action@v3
103
+ with :
104
+ push : ${{ github.event_name != 'pull_request' }}
105
+ tags : docker.eventstore.com/${{ steps.meta.outputs.tags }}
106
+ labels : ${{ steps.meta.outputs.labels }}
107
+ platforms : linux/amd64,linux/arm64
92
108
93
109
test-windows :
94
110
runs-on : windows-latest
0 commit comments