Only use goreleaser for docker images

This commit is contained in:
Christoph Petrausch
2020-10-19 20:27:32 +02:00
parent 004444a442
commit 0958d4c865

View File

@@ -21,9 +21,7 @@ jobs:
run: go test ./...
- name: Vet
run: go vet ./...
# Release docker file
- name: Build the Docker image
run: docker build -t docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest -t docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:${GITHUB_REF##*/} .
# Login to the registries
- name: Login to Github Packages
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Login to Dockerhub