-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.yml
More file actions
59 lines (54 loc) · 1.66 KB
/
config.yml
File metadata and controls
59 lines (54 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: 2.1
orbs:
win: circleci/windows@2.4.1
azure-aks: circleci/azure-aks@0.3.0
azure-cli: circleci/azure-cli@1.2.0
helm: circleci/helm@1.2.0
references:
job_filters_tags_and_branches: &job_filters_tags_and_branches
tags:
only: /^koordinator-build-([0-9.]+)/
branches:
ignore: /.*/
job_filters_branches_only: &job_filters_branches_only
branches:
only: /.*/
jobs:
checkout:
docker:
- image: circleci/node:14.17
resource_class: small
steps:
- checkout
- persist_to_workspace:
root: /home/circleci/project
paths:
- .
koordinatorBuild:
docker:
- image: cimg/base:2020.12-20.04
resource_class: small
steps:
- attach_workspace:
at: /home/circleci/project
- setup_remote_docker:
docker_layer_caching: false
- run:
name: Koordinator Build - Build docker image
working_directory: koordinator-build
command: |
docker build --build-arg circleci_gid=1002 --build-arg circleci_uid=1001 . --tag xcomponent/koordinator-build:${CIRCLE_TAG//koordinator-build-/}-machine-executor
- run:
name: Koordinator Build - Push image to DockerHub
command: |
echo $DOCKERHUB_PASSWORD | docker login -u xcomponentteam --password-stdin
docker push xcomponent/koordinator-build:${CIRCLE_TAG//koordinator-build-/}-machine-executor
workflows:
build_and_push_images:
jobs:
- checkout:
filters: *job_filters_tags_and_branches
- koordinatorBuild:
filters: *job_filters_tags_and_branches
requires:
- checkout