Skip to content

Commit

Permalink
update release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
karimra committed Sep 30, 2022
1 parent 909a46b commit 4c09a1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ jobs:
with:
go-version: ${{ env.GOVER }}

- name: Login to dockerhub
run: docker login -u vikar2 -p ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to github container registry
run: docker login ghcr.io -u karimra -p ${{ secrets.GHCR_TOKEN }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Release with goreleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ dockers:
ids:
- gnmic
image_templates:
- "docker.io/gnmic/gnmic:latest"
- 'docker.io/gnmic/gnmic:{{ replace .Version "v" ""}}'
- "ghcr.io/openconfig/gnmic:latest"
- 'ghcr.io/openconfig/gnmic:{{ replace .Version "v" ""}}'
dockerfile: goreleaser-alpine.dockerfile
Expand Down

0 comments on commit 4c09a1c

Please sign in to comment.