Publishing to 2 different ECR repos using ko goreleaser #5318
Unanswered
Junaid82774464
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I think you might need to pass the env to the workflow: - name: Run GoReleaser
id: build-image
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KO_DOCKER_REPO_1: ${{ steps.login-ecr-private.outputs.registry }}
KO_DOCKER_REPO_2: ${{ steps.login-ecr-other.outputs.registry }} # I think you'll need to set it here and in your configuration you can set repository to |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have 2 projects in a repository.
How can I use two different repos.
Tried setting
KO_DOCKER_REPO: ${{ steps.login-ecr-private.outputs.registry }}
and tried to reference it in the repository tag like this:repository: "{{.Env.KO_DOCKER_REPO}}/repo1"
This approach doesn't work. Takes just the base value and throws an error.
Beta Was this translation helpful? Give feedback.
All reactions