Skip to content
This repository was archived by the owner on Nov 10, 2019. It is now read-only.

Commit b020794

Browse files
Merge pull request #40 from codefresh-io/support-user-creds
New support for azure builder with user cradentials
2 parents a43f7a2 + 92724d0 commit b020794

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

dynamic-catalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# **Catalog**
2-
Created at ** Mon Dec 24 2018 11:31:14 GMT+0000 (Coordinated Universal Time)**
2+
Created at ** Wed Dec 26 2018 12:59:29 GMT+0000 (Coordinated Universal Time)**
33

44

55
| Plugin Name | Image | Description | source | Tags |

plugins/azure-builder/README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ DESCRIPTION:
1212
1313
## Mandatory Parameters:
1414
15+
AUTH - authentication mode. By defualt it is Azure user cradentials. use 'service-princpal' value in case you want to authenticate using service principal.
16+
USER - Azure user name (not needed if authentication mode is service-principal)
1517
IMAGE - Image name
1618
TAG - Tag name
1719
ACR_NAME - ACR registry name
18-
APP_ID - Azure service principal application id
19-
PASSWORD - Azure service principal password
20-
TENANT - Azure ad tenant id
20+
APP_ID - Azure service principal application id (only needed if authentication mode is service-principal)
21+
PASSWORD - Azure user\service principal password
22+
TENANT - Azure ad tenant id (only needed if authentication mode is service-principal)
2123
DOCKERFILE_PATH - Dockerfile path (default - working_dir/Dockerfile)
2224
2325
## Output Variables
@@ -26,11 +28,14 @@ DESCRIPTION:
2628
2729
## Usage Example:
2830
31+
## service principal
32+
2933
version: '1.0'
3034
steps:
3135
cf-az-build:
3236
image: codefresh/cf-azure-builder
3337
environment:
38+
- AUTH=service-principal
3439
- IMAGE=<image name>
3540
- TAG=<tag name>
3641
- ACR_NAME=<acr registry name>
@@ -39,3 +44,12 @@ steps:
3944
- TENANT=<azure ad tenant id>
4045
- DOCKERFILE_PATH=<dockerfile path>
4146
47+
## user cradentials
48+
49+
image: 'amircodefresh/azure-builder:2612'
50+
environment:
51+
- IMAGE=<image name>
52+
- TAG=<tag name>
53+
- ACR_NAME=<acr registry name>
54+
- USER=<azure user name>
55+
- PASSWORD=<azure user password>

plugins/azure-builder/plugin.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ maintainers: # (optional)
1313
email: amir.gabay@codefresh.io
1414
icon: https://cdn-images-1.medium.com/max/1600/1*c9mvlJQ0o-zQbHM3SL8zkg.png
1515
envs:
16+
- name: AUTH
17+
type: optional
18+
description: Only if authentication mode is by service principal
19+
- name: USER
20+
type: required
21+
description: azure user name (not need in service principal authentication mode)
1622
- name: IMAGE
1723
type: required
1824
description: image name
@@ -24,13 +30,13 @@ icon: https://cdn-images-1.medium.com/max/1600/1*c9mvlJQ0o-zQbHM3SL8zkg.png
2430
description: acr registry name
2531
- name: APP_ID
2632
type: required
27-
description: azure service principal application id
33+
description: azure service principal application id (service principal authentication mode only)
2834
- name: PASSWORD
2935
type: required
30-
description: azure service principal password
36+
description: azure service principal password or user password (based on authentication mode)
3137
- name: TENANT
3238
type: required
33-
description: azure ad tenant id
39+
description: azure ad tenant id (service principal authentication mode only)
3440
- name: DOCKERFILE_PATH
3541
type: required
3642
description: dockerfile path (default - working_dir/Dockerfile)

0 commit comments

Comments
 (0)