Skip to content

Commit 48e192f

Browse files
committed
Fixes parrot release pipeline
1 parent c50c769 commit 48e192f

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/parrot-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
uses: actions/setup-go@v5
3636
with:
3737
go-version: stable
38+
cache-dependency-path: ./parrot/go.mod
3839
- name: Goreleaser Release
3940
uses: goreleaser/goreleaser-action@v6
4041
with:

parrot/.changeset/v0.4.3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixes release env vars

parrot/.goreleaser.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ dockers:
4141
image_templates:
4242
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-amd64'
4343
- '{{ .Env.IMG_PRE }}/parrot:latest-amd64'
44-
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:{{ .Tag }}-amd64{{ end }}'
45-
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:latest-amd64{{ end }}'
44+
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:{{ .Tag }}-amd64{{ end }}'
45+
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:latest-amd64{{ end }}'
4646
build_flag_templates:
4747
- --platform=linux/amd64
4848
- --pull
@@ -56,8 +56,8 @@ dockers:
5656
image_templates:
5757
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-arm64'
5858
- '{{ .Env.IMG_PRE }}/parrot:latest-arm64'
59-
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:{{ .Tag }}-arm64{{ end }}'
60-
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:latest-arm64{{ end }}'
59+
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:{{ .Tag }}-arm64{{ end }}'
60+
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:latest-arm64{{ end }}'
6161
build_flag_templates:
6262
- --platform=linux/arm64
6363
- --pull
@@ -75,14 +75,14 @@ docker_manifests:
7575
image_templates:
7676
- '{{ .Env.IMG_PRE }}/parrot:latest-amd64'
7777
- '{{ .Env.IMG_PRE }}/parrot:latest-arm64'
78-
- name_template: '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:{{ .Tag }}{{ end }}'
78+
- name_template: '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:{{ .Tag }}{{ end }}'
7979
image_templates:
80-
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:{{ .Tag }}-amd64{{ end }}'
81-
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:{{ .Tag }}-arm64{{ end }}'
82-
- name_template: '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:latest{{ end }}'
80+
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:{{ .Tag }}-amd64{{ end }}'
81+
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:{{ .Tag }}-arm64{{ end }}'
82+
- name_template: '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:latest{{ end }}'
8383
image_templates:
84-
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:latest-amd64{{ end }}'
85-
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USER }}/parrot:latest-arm64{{ end }}'
84+
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:latest-amd64{{ end }}'
85+
- '{{ if ne .Env.IMG_PRE "local" }}{{ .Env.DOCKER_USERNAME }}/parrot:latest-arm64{{ end }}'
8686

8787
before:
8888
hooks:

0 commit comments

Comments
 (0)