Move all builds from Docker Hub to CircleCI, simplify build config

This commit is contained in:
Kristian Haugene
2020-02-11 17:17:00 +01:00
parent 41a034ccce
commit f52b702ad7

View File

@@ -1,73 +1,55 @@
version: 2.1 version: 2.1
workflows: workflows:
# Defines jobs to run when a commit is pushed to master branch
build-latest-version: # Defines a workflow for building and pushing updated documentation to GitHub pages
build-documentation:
jobs: jobs:
- build-armhf-image:
context: dockerhub
filters:
branches:
only:
- master
- build-arm64-image:
context: dockerhub
filters:
branches:
only:
- master
- build-and-deploy-gh-pages: - build-and-deploy-gh-pages:
filters: filters:
branches: branches:
only: master only: master
# Defines jobs to run when a commit is pushed to dev branch # Defines workflow for when to build the different Docker images
build-dev-version: build-docker-images:
jobs:
- build-armhf-image:
context: dockerhub
filters:
branches:
only:
- dev
- build-arm64-image:
context: dockerhub
filters:
branches:
only:
- dev
# Defines jobs to run when a new release tag is created
build-tagged-version:
jobs: jobs:
- build-ubuntu-image: - build-ubuntu-image:
context: dockerhub context: dockerhub
filters: filters:
branches: branches:
ignore: /.*/ only:
- dev
- master
tags: tags:
only: /^\d+\.\d+.*/ only: /^\d+\.\d+.*/
- build-alpine-image: - build-alpine-image:
context: dockerhub context: dockerhub
filters: filters:
branches: branches:
ignore: /.*/ only:
- dev
- master
tags: tags:
only: /^\d+\.\d+.*/ only: /^\d+\.\d+.*/
- build-armhf-image: - build-armhf-image:
context: dockerhub context: dockerhub
filters: filters:
branches: branches:
ignore: /.*/ only:
- dev
- master
tags: tags:
only: /^\d+\.\d+.*/ only: /^\d+\.\d+.*/
- build-arm64-image: - build-arm64-image:
context: dockerhub context: dockerhub
filters: filters:
branches: branches:
ignore: /.*/ only:
- dev
- master
tags: tags:
only: /^\d+\.\d+.*/ only: /^\d+\.\d+.*/
# Job definitions, used by the workflows.
jobs: jobs:
build-ubuntu-image: build-ubuntu-image:
environment: environment: