File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed
actions/build-and-publish-docker Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -10,23 +10,31 @@ inputs:
10
10
dry_run :
11
11
description : If set, generate the docker image but don't publish it
12
12
required : true
13
- type : boolean
13
+ registry :
14
+ description : ' The docker registry'
15
+ required : true
16
+ username :
17
+ description : ' The docker username'
18
+ required : true
19
+ password :
20
+ description : ' The docker password'
21
+ required : true
14
22
runs :
15
23
using : " composite"
16
- env :
17
- SONATYPE_FALLBACK : 1
18
24
steps :
19
25
- name : Log in to the Elastic Container registry
20
26
uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
21
27
with :
22
- registry : ${{ secrets.ELASTIC_DOCKER_REGISTRY }}
23
- username : ${{ secrets.ELASTIC_DOCKER_USERNAME }}
24
- password : ${{ secrets.ELASTIC_DOCKER_PASSWORD }}
28
+ registry : ${{ inputs.registry }}
29
+ username : ${{ inputs.username }}
30
+ password : ${{ inputs.password }}
25
31
26
32
- name : " Build docker image"
27
33
shell : bash
28
34
run : ./scripts/docker-release/build_docker.sh "${{ inputs.release_version }}"
35
+ env :
36
+ SONATYPE_FALLBACK : 1
29
37
- name : " Push docker image"
30
- if : ${{ ! inputs.dry_run }}
38
+ if : ${{ inputs.dry_run == 'false' }}
31
39
shell : bash
32
40
run : ./scripts/docker-release/push_docker.sh "${{ inputs.release_version }}"
Original file line number Diff line number Diff line change 39
39
release_version : ${{ inputs.version }}
40
40
ref : ${{ inputs.ref }}
41
41
dry_run : ${{ inputs.dry_run }}
42
+ registry : ${{ secrets.ELASTIC_DOCKER_REGISTRY }}
43
+ username : ${{ secrets.ELASTIC_DOCKER_USERNAME }}
44
+ password : ${{ secrets.ELASTIC_DOCKER_PASSWORD }}
Original file line number Diff line number Diff line change @@ -139,6 +139,9 @@ jobs:
139
139
release_version : " ${{ env.RELEASE_VERSION }}"
140
140
ref : ${{ inputs.ref }}
141
141
dry_run : ${{ inputs.dry_run }}
142
+ registry : ${{ secrets.ELASTIC_DOCKER_REGISTRY }}
143
+ username : ${{ secrets.ELASTIC_DOCKER_USERNAME }}
144
+ password : ${{ secrets.ELASTIC_DOCKER_PASSWORD }}
142
145
143
146
publish-aws-lambda :
144
147
name : " Publish AWS Lambda"
You can’t perform that action at this time.
0 commit comments