Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-node-exporter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
ansible-node-exporter
Commits
1d54f1a4
Unverified
Commit
1d54f1a4
authored
4 years ago
by
Ben Kochie
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #212 from cloudalchemy/superq/publisher_image
Use cloudalchemy/publisher
parents
7b909b0b
e99a1358
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ansible-lint
+3
-3
3 additions, 3 deletions
.ansible-lint
.circleci/config.yml
+8
-39
8 additions, 39 deletions
.circleci/config.yml
with
11 additions
and
42 deletions
.ansible-lint
+
3
−
3
View file @
1d54f1a4
---
skip_list:
- '106'
- '204'
- '208'
- '106'
- '204'
- '208'
This diff is collapsed.
Click to expand it.
.circleci/config.yml
+
8
−
39
View file @
1d54f1a4
...
...
@@ -5,6 +5,9 @@ executors:
python
:
docker
:
-
image
:
cimg/python:3.9
publisher
:
docker
:
-
image
:
quay.io/cloudalchemy/publisher:latest
jobs
:
lint
:
...
...
@@ -42,48 +45,14 @@ jobs:
echo 'Not running latest on PR'
fi
release
:
executor
:
p
ython
executor
:
p
ublisher
environment
:
GIT_MAIL
:
cloudalchemybot@gmail.com
GIT_USER
:
cloudalchemybot
GIT_COMMIT_DESC
:
git log --format=%B -n 1 ${CIRCLE_SHA1}
PROJECT_USERNAME
:
$CIRCLE_PROJECT_USERNAME
PROJECT_REPONAME
:
$CIRCLE_PROJECT_REPONAME
steps
:
-
checkout
-
setup_remote_docker
-
run
:
pip install git-semver
-
run
:
git config --global user.email "${GIT_MAIL}"
-
run
:
git config --global user.name "${GIT_USER}"
-
run
:
|
GIT_TAG=none
case "$(git log --format=oneline -n 1 $CIRCLE_SHA1)" in
*"[patch]"*|*"[fix]"*|*"[bugfix]"* ) GIT_TAG=$(git semver --next-patch) ;;
*"[minor]"*|*"[feat]"*|*"[feature]"* ) GIT_TAG=$(git semver --next-minor) ;;
*"[major]"*|*"[breaking change]"* ) GIT_TAG=$(git semver --next-major) ;;
*) echo "Keyword not detected. Doing nothing" && circleci-agent step halt ;;
esac
echo "GIT_TAG=${GIT_TAG}" >> $BASH_ENV
-
run
:
|
docker run -it --rm \
-v "${CIRCLE_WORKING_DIRECTORY}:/role" \
-w "/role" \
ferrarimarco/github-changelog-generator:1.15.2 \
--user "${CIRCLE_PROJECT_USERNAME}" \
--project "${CIRCLE_PROJECT_REPONAME}" \
--token "${GH_TOKEN}" \
--release-url "https://galaxy.ansible.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME#ansible-}" \
--unreleased-label "**Next release**" --no-compare-link \
--future-release "${GIT_TAG}"
-
run
:
git add CHANGELOG.md
-
run
:
git commit -m "[ci skip] Automatic changelog update"
-
run
:
git push "https://${GH_TOKEN}:@${GIT_URL}" || circleci-agent step halt
-
run
:
|
ghr \
-t ${GH_TOKEN} \
-u ${CIRCLE_PROJECT_USERNAME} \
-r ${CIRCLE_PROJECT_REPONAME} \
-n ${GIT_TAG} \
-b "$(sed -n -e '/## \[0.22.0\]/,/## \[/ p' CHANGELOG.md | sed -e '$ d')" \
${GIT_TAG}
-
run
:
create_release
galaxy
:
executor
:
python
steps
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment