diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index f0b57a0..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -version: 2 -jobs: - build: - docker: - - image: library/docker:17 - working_directory: /tmp/build - environment: - DOCKER_USERNAME: travisciresin - DOCKER_IMAGE: resin/resin-db - steps: - - checkout - - setup_remote_docker: - version: 17.07.0-ce - reusable: true - exclusive: false - - run: - name: Setup - command: | - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" - apk add --no-cache git - - run: - name: Build and push - command: | - IMAGE_NAME=$DOCKER_IMAGE BRANCH_NAME=$CIRCLE_BRANCH ./automation/build.sh diff --git a/automation/build.sh b/automation/build.sh index 97f0ce5..255c45b 100755 --- a/automation/build.sh +++ b/automation/build.sh @@ -21,11 +21,3 @@ docker tag ${IMAGE_NAME}:${REVISION} ${IMAGE_NAME}:${VERSION} docker push ${IMAGE_NAME}:${REVISION} docker push ${IMAGE_NAME}:${BRANCH} docker push ${IMAGE_NAME}:${VERSION} - -# Push the images to open-balena-db repo -docker tag ${IMAGE_NAME}:${REVISION} resin/open-balena-db:${REVISION} -docker tag ${IMAGE_NAME}:${REVISION} resin/open-balena-db:${BRANCH} -docker tag ${IMAGE_NAME}:${REVISION} resin/open-balena-db:${VERSION} -docker push resin/open-balena-db:${REVISION} -docker push resin/open-balena-db:${BRANCH} -docker push resin/open-balena-db:${VERSION} diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 48e341a..0000000 --- a/package-lock.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "lockfileVersion": 1 -} diff --git a/versionist.conf.js b/versionist.conf.js deleted file mode 100644 index 32c47b4..0000000 --- a/versionist.conf.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -const execSync = require('child_process').execSync; - -const getAuthor = (commitHash) => { - return execSync(`git show --quiet --format="%an" ${commitHash}`, { - encoding: 'utf8' - }).replace('\n', ''); -}; - -const isIncrementalCommit = (changeType) => { - return Boolean(changeType) && changeType.trim().toLowerCase() !== 'none'; -}; - -module.exports = { - // This setup allows the editing and parsing of footer tags to get version and type information, - // as well as ensuring tags of the type 'v<major>.<minor>.<patch>' are used. - // It increments in a semver compatible fashion and allows the updating of NPM package info. - editChangelog: true, - parseFooterTags: true, - getGitReferenceFromVersion: 'v-prefix', - incrementVersion: 'semver', - editVersion: false, - - // Always add the entry to the top of the Changelog, below the header. - addEntryToChangelog: { - preset: 'prepend', - fromLine: 6 - }, - - // Only include a commit when there is a footer tag of 'change-type'. - // Ensures commits which do not up versions are not included. - includeCommitWhen: (commit) => { - return isIncrementalCommit(commit.footer['change-type']); - }, - - // Determine the type from 'change-type:' tag. - // Should no explicit change type be made, then no changes are assumed. - getIncrementLevelFromCommit: (commit) => { - if (isIncrementalCommit(commit.footer['change-type'])) { - return commit.footer['change-type'].trim().toLowerCase(); - } - }, - - // If a 'changelog-entry' tag is found, use this as the subject rather than the - // first line of the commit. - transformTemplateData: (data) => { - data.commits.forEach((commit) => { - commit.subject = commit.footer['changelog-entry'] || commit.subject; - commit.author = getAuthor(commit.hash); - }); - - return data; - }, - - template: [ - '## v{{version}} - {{moment date "Y-MM-DD"}}', - '', - '{{#each commits}}', - '{{#if this.author}}', - '* {{capitalize this.subject}} [{{this.author}}]', - '{{else}}', - '* {{capitalize this.subject}}', - '{{/if}}', - '{{/each}}' - ].join('\n') -};