-
Notifications
You must be signed in to change notification settings - Fork 33
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
f19c6de
commit f4eac06
Showing
5 changed files
with
101 additions
and
70 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 |
---|---|---|
|
@@ -11,63 +11,63 @@ executors: | |
jobs: | ||
codespell: | ||
docker: | ||
- image: circleci/python | ||
- image: circleci/python | ||
steps: | ||
- checkout | ||
- run: sudo pip install codespell | ||
- run: codespell --skip=".git,./vendor" | ||
- checkout | ||
- run: sudo pip install codespell | ||
- run: codespell --skip=".git,./vendor" | ||
|
||
build: | ||
docker: | ||
- image: cimg/go:1.19 | ||
- image: cimg/go:1.19 | ||
environment: | ||
- DOCKER_IMAGE_NAME: "mjtrangoni/flexlm_exporter" | ||
- QUAY_IMAGE_NAME: "quay.io/mjtrangoni/flexlm_exporter" | ||
- DOCKER_IMAGE_NAME: "mjtrangoni/flexlm_exporter" | ||
- QUAY_IMAGE_NAME: "quay.io/mjtrangoni/flexlm_exporter" | ||
steps: | ||
# checkout the project | ||
- checkout | ||
# checkout the project | ||
- checkout | ||
|
||
# make and test | ||
- run: | ||
name: Binary Build | ||
command: make | ||
# make and test | ||
- run: | ||
name: Binary Build | ||
command: make | ||
|
||
- setup_remote_docker: | ||
version: 20.10.14 | ||
docker_layer_caching: true | ||
- setup_remote_docker: | ||
version: 20.10.14 | ||
docker_layer_caching: true | ||
|
||
# quay build | ||
- run: | ||
name: Quay.io Build | ||
command: docker build -t $QUAY_IMAGE_NAME -t $QUAY_IMAGE_NAME:$CIRCLE_BRANCH . | ||
- run: | ||
name: Quay Login | ||
command: docker login -u $QUAYLOGIN -p $QUAYPASSWORD quay.io | ||
- run: | ||
name: Quay Push | ||
command: docker push $QUAY_IMAGE_NAME:$CIRCLE_BRANCH | ||
- run: | ||
name: Docker Build | ||
command: make docker | ||
- run: | ||
name: Docker Login | ||
command: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD | ||
- run: | ||
name: Docker Push | ||
command : docker push $DOCKER_IMAGE_NAME:$CIRCLE_BRANCH | ||
# quay build | ||
- run: | ||
name: Quay.io Build | ||
command: docker build -t $QUAY_IMAGE_NAME -t $QUAY_IMAGE_NAME:$CIRCLE_BRANCH . | ||
- run: | ||
name: Quay Login | ||
command: docker login -u $QUAYLOGIN -p $QUAYPASSWORD quay.io | ||
- run: | ||
name: Quay Push | ||
command: docker push $QUAY_IMAGE_NAME:$CIRCLE_BRANCH | ||
- run: | ||
name: Docker Build | ||
command: make docker | ||
- run: | ||
name: Docker Login | ||
command: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD | ||
- run: | ||
name: Docker Push | ||
command: docker push $DOCKER_IMAGE_NAME:$CIRCLE_BRANCH | ||
|
||
release: | ||
executor: golang | ||
steps: | ||
- checkout | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "f5:e9:3e:54:1e:4d:db:c8:14:27:1f:8d:60:9f:4e:f5" | ||
- run: | ||
name: Release binaries | ||
command: | | ||
go install github.com/prometheus/[email protected] | ||
curl -sL https://git.io/goreleaser | bash | ||
- checkout | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "f5:e9:3e:54:1e:4d:db:c8:14:27:1f:8d:60:9f:4e:f5" | ||
- run: | ||
name: Release binaries | ||
command: | | ||
go install github.com/prometheus/[email protected] | ||
curl -sL https://git.io/goreleaser | bash | ||
workflows: | ||
version: 2 | ||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
commas: disable | ||
comments: disable | ||
comments-indentation: disable | ||
document-start: disable | ||
indentation: | ||
spaces: consistent | ||
indent-sequences: consistent | ||
line-length: disable | ||
truthy: | ||
ignore: | | ||
config/fixtures/licenses.yml | ||
.github/workflows/build.yml |
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