Skip to content

Commit d4ac2fa

Browse files
committed
Fix goreleaser
1 parent 5c2f4bd commit d4ac2fa

File tree

2 files changed

+27
-16
lines changed

2 files changed

+27
-16
lines changed

.github/workflows/parrotserver-release.yml renamed to .github/workflows/parrot-release.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Parrotserver Release
33
on:
44
push:
55
tags:
6-
- parrotserver/v*
6+
- parrot/v*
77

88
jobs:
99
release:
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout repo
1515
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
16+
with:
17+
fetch-depth: 0
1618
- name: Configure AWS Credentials
1719
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
1820
with:
@@ -25,9 +27,18 @@ jobs:
2527
mask-password: 'true'
2628
env:
2729
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
28-
- name: Build and release
30+
- name: Set up Go
31+
uses: actions/setup-go@v5
32+
with:
33+
go-version: stable
34+
- name: Goreleaser Release
35+
uses: goreleaser/goreleaser-action@v6
36+
with:
37+
distribution: goreleaser-pro
38+
version: "~> v2"
39+
args: release --clean
2940
env:
3041
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
IMAGE_PREFIX: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/parrotserver
42+
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
43+
IMAGE_PREFIX: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/parrot
3244
IMAGE_TAG: ${{ github.ref_name}}
33-
run: goreleaser release --clean -f ./parrotserver/.goreleaser.yml

parrot/.goreleaser.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
2-
version: 1
3-
project_name: parrotserver
2+
version: 2
3+
project_name: parrot
44

55
monorepo:
6-
tag_prefix: parrotserver/
7-
dir: parrotserver
6+
tag_prefix: parrot/
7+
dir: parrot
88

99
env:
1010
- IMG_PRE={{ if index .Env "IMAGE_PREFIX" }}{{ .Env.IMAGE_PREFIX }}{{ else }}local{{ end }}
1111
- TAG={{ if index .Env "IMAGE_TAG" }}{{ .Env.IMAGE_TAG }}{{ else }}latest{{ end }}
1212

1313
# Build settings for binaries
1414
builds:
15-
- id: parrotserver
15+
- id: parrot
1616
goos:
1717
- linux
1818
- darwin
@@ -26,25 +26,25 @@ archives:
2626
- format: binary
2727

2828
dockers:
29-
- id: linux-amd64-parrotserver
29+
- id: linux-amd64-parrot
3030
goos: linux
3131
goarch: amd64
3232
image_templates:
33-
- '{{ .Env.IMG_PRE }}/parrotserver:{{ .Tag }}'
34-
- '{{ .Env.IMG_PRE }}/parrotserver:latest'
33+
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}'
34+
- '{{ .Env.IMG_PRE }}/parrot:latest'
3535
build_flag_templates:
3636
- --platform=linux/amd64
3737
- --pull
3838
- --label=org.opencontainers.image.created={{.Date}}
3939
- --label=org.opencontainers.image.title={{.ProjectName}}
4040
- --label=org.opencontainers.image.revision={{.FullCommit}}
4141
- --label=org.opencontainers.image.version={{.Version}}
42-
- id: linux-arm64-parrotserver
42+
- id: linux-arm64-parrot
4343
goos: linux
4444
goarch: arm64
4545
image_templates:
46-
- '{{ .Env.IMG_PRE }}/parrotserver:{{ .Tag }}-arm64'
47-
- '{{ .Env.IMG_PRE }}/parrotserver:latest-arm64'
46+
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-arm64'
47+
- '{{ .Env.IMG_PRE }}/parrot:latest-arm64'
4848
build_flag_templates:
4949
- --platform=linux/arm64
5050
- --pull
@@ -55,4 +55,4 @@ dockers:
5555

5656
before:
5757
hooks:
58-
- cd parrotserver && go mod tidy
58+
- cd parrot && go mod tidy

0 commit comments

Comments
 (0)