mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Update circle ci config
This commit is contained in:
parent
ac687f8124
commit
f9cff143dd
1 changed files with 16 additions and 34 deletions
|
|
@ -1,10 +1,5 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
parameters:
|
|
||||||
tag:
|
|
||||||
type: string
|
|
||||||
default: "rc"
|
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
docker-executor:
|
docker-executor:
|
||||||
machine:
|
machine:
|
||||||
|
|
@ -46,37 +41,24 @@ jobs:
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: coverage
|
path: coverage
|
||||||
|
|
||||||
build-and-push:
|
|
||||||
executor:
|
|
||||||
name: docker/docker
|
|
||||||
parameters:
|
|
||||||
tag:
|
|
||||||
type: string
|
|
||||||
default: "rc"
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- docker/login:
|
|
||||||
docker-username: "$DOCKERHUB_USERNAME"
|
|
||||||
docker-password: "$DOCKERHUB_TOKEN"
|
|
||||||
- docker/build-publish:
|
|
||||||
image: "freikin/dawarich:<< parameters.tag >>"
|
|
||||||
dockerfile: ./docker/Dockerfile.dev
|
|
||||||
build-args: ""
|
|
||||||
extra-build-args: "--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6"
|
|
||||||
registry: "docker.io"
|
|
||||||
push: true
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build-and-test:
|
test:
|
||||||
jobs:
|
jobs:
|
||||||
- test
|
- test
|
||||||
- build-and-push:
|
build-docker-image-only:
|
||||||
requires:
|
jobs:
|
||||||
- test
|
- docker/publish:
|
||||||
filters:
|
image: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
|
||||||
branches:
|
update-description: true
|
||||||
ignore: /.*/ # Run only on tag builds
|
build-docker-image-only-with-buildkit:
|
||||||
tags:
|
jobs:
|
||||||
only: /.*/ # Run for any tag
|
- docker/publish:
|
||||||
tag: "<< pipeline.parameters.tag >>"
|
image: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
|
||||||
|
remote-docker-version: 20.10.12
|
||||||
|
update-description: true
|
||||||
|
use-buildkit: true
|
||||||
|
use-remote-docker: true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue