Skip to content

Commit

Permalink
Merge pull request #18 from ExpressenAB/feature/dockerbuild
Browse files Browse the repository at this point in the history
missing version args
  • Loading branch information
sfro committed Aug 21, 2020
2 parents 7961e53 + fedadb6 commit 2f28c4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Expand Up @@ -76,7 +76,7 @@ jobs:
asset_name: cloudmonitor_exporter_${{ steps.vars.outputs.tag }}_windows_amd64.tar.gz
asset_content_type: application/gzip
- name: Build Image
run: make docker
run: VERSION=${{ steps.vars.outputs.tag }} make docker
- name: Login to docker hub
run: docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Push to docker hub
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -44,4 +44,4 @@ rpm: package
docker run --rm -i -v $(shell pwd):/docker centos:7 /docker/package/rpm/build_rpm.sh ${VERSION}

docker: xbuild
docker build --build-arg version=${VERSION} . -t cloudmonitor_exporter:${VERSION}
docker build --build-arg version=${VERSION} . -t bonniernews/cloudmonitor_exporter:${VERSION}

0 comments on commit 2f28c4d

Please sign in to comment.