-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mario Trangoni <[email protected]>
- Loading branch information
1 parent
ead6667
commit 4735b02
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
|
||
# ghcr.io build | ||
- run: | ||
name: Build | ||
name: GHCR Build | ||
command: | | ||
if [ -n "$CIRCLE_TAG" ]; then | ||
docker build -t $GHCR_IMAGE_NAME:latest -t $GHCR_IMAGE_NAME:$CIRCLE_TAG . | ||
|
@@ -61,7 +61,7 @@ jobs: | |
# quay.io build | ||
- run: | ||
name: Build | ||
name: Quay Build | ||
command: | | ||
if [ -n "$CIRCLE_TAG" ]; then | ||
docker build -t $QUAY_IMAGE_NAME:latest -t $QUAY_IMAGE_NAME:$CIRCLE_TAG . | ||
|
@@ -83,7 +83,12 @@ jobs: | |
- run: | ||
name: Docker Build | ||
command: make docker | ||
command: | | ||
if [ -n "$CIRCLE_TAG" ]; then | ||
docker build -t $DOCKER_IMAGE_NAME:latest -t $DOCKER_IMAGE_NAME:$CIRCLE_TAG . | ||
else | ||
docker build -t $DOCKER_IMAGE_NAME:$CIRCLE_BRANCH . | ||
fi | ||
- run: | ||
name: Docker Login | ||
command: echo $DOCKER_PASSWORD | docker login docker.io -u $DOCKER_LOGIN --password-stdin | ||
|
@@ -108,7 +113,7 @@ jobs: | |
name: Release binaries | ||
command: | | ||
go install github.com/prometheus/[email protected] | ||
curl -sL https://git.io/goreleaser | bash | ||
curl -sfL https://goreleaser.com/static/run | VERSION=latest DISTRIBUTION=oss bash -s -- check | ||
workflows: | ||
version: 2 | ||
|