Skip to content

Commit 00896ad

Browse files
authored
Fix login to ghcr.io (#120)
1 parent 5633178 commit 00896ad

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,17 @@ jobs:
4545
run: |
4646
mage -v test
4747
48+
- name: Login to GitHub Container Registry
49+
uses: docker/login-action@v1
50+
with:
51+
registry: ghcr.io
52+
username: ${{ github.actor }}
53+
password: ${{ secrets.GITHUB_TOKEN }}
54+
4855
- name: Release
4956
run: |
5057
echo "Building release ${{ github.event.inputs.version }}"
5158
mage -v release
5259
env:
53-
GITHUB_TOKEN: "${{ secrets.CI_TOKEN }}"
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}

.goreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ brews:
3333
- tap:
3434
owner: craftypath
3535
name: homebrew-tap
36+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
3637
commit_author:
3738
name: craftypath-ci-bot
3839
email: craftypath-ci-bot@users.noreply.github.com
3940
folder: Formula
4041
homepage: https://github.com/craftypath/gotf/
4142
description: Handling multiple environments with Terraform made easy
43+
install: |
44+
bin.install "gotf"
4245
test: |
4346
system "#{bin}/gotf --version"
4447
dockers:

0 commit comments

Comments
 (0)