Skip to content

Commit

Permalink
ci: setup docker image push correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Jul 2, 2020
1 parent e197ef6 commit 4cde6fb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Docker login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ dockers:
binaries:
- chart-releaser
image_templates:
- 'edaniszewski/chart-releaser:{{ .Tag }}'
- 'edaniszewski/chart-releaser:{{ .Major }}'
- 'edaniszewski/chart-releaser:{{ .Major }}.{{ .Minor }}'
- 'edaniszewski/chart-releaser:latest'
- 'chartreleaser/chart-releaser:{{ .Tag }}'
- 'chartreleaser/chart-releaser:{{ .Major }}'
- 'chartreleaser/chart-releaser:{{ .Major }}.{{ .Minor }}'
- 'chartreleaser/chart-releaser:latest'
build_flag_templates:
- '--label=org.label-schema.version={{ .Version }}'
- '--label=org.label-schema.build-date={{ .Date }}'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM scratch

LABEL org.label-schema.schema-version="1.0" \
org.label-schema.name="edaniszewski/chart-releaser" \
org.label-schema.name="chartreleaser/chart-releaser" \
org.label-schema.vcs-url="https://github.com/edaniszewski/chart-releaser" \
org.label-schema.vendor="Erick Daniszewski"

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

BIN_NAME := chart-releaser
BIN_VERSION := 0.1.0
IMG_NAME := edaniszewski/chart-releaser
IMG_NAME := chartreleaser/chart-releaser

GIT_COMMIT ?= $(shell git rev-parse --short HEAD 2> /dev/null || true)
GIT_TAG ?= $(shell git describe --tags 2> /dev/null || true)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ page. All tags generate a release with pre-compiled binaries attached as assets.
A lightweight Docker image is also available:

```
docker pull edaniszewski/chart-releaser
docker pull chartreleaser/chart-releaser
```

#### Homebrew
Expand Down

0 comments on commit 4cde6fb

Please sign in to comment.