File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 13
13
tag :
14
14
type : string
15
15
required : true
16
+ secrets : # Secrets are not passed to the workflow by default
17
+ DOCKERHUB_PASSWORD :
18
+ required : true
16
19
17
20
permissions :
18
21
contents : read
32
35
uses : docker/login-action@v2
33
36
with :
34
37
username : crenshawdotdev
35
- password : ${{ secrets.DOCKERHUB_PASSWORD }}
38
+ password : ${{ secrets.DOCKERHUB_PASSWORD || inputs.DOCKERHUB_PASSWORD }}
36
39
- name : Build and push
37
40
uses : docker/build-push-action@v3
38
41
with :
Original file line number Diff line number Diff line change 1
- name : Create argocd-executor-plugin release
1
+ name : Create release
2
2
on :
3
3
workflow_dispatch :
4
4
inputs :
5
5
tag :
6
6
required : true
7
+ secrets :
8
+ DOCKERHUB_PASSWORD :
9
+ required : true
7
10
8
11
permissions :
9
12
contents : read
10
13
11
14
jobs :
12
- build-and-push :
13
- uses : crenshaw-dev/argocd-executor-plugin/.github/workflows/build.yaml@main
14
- with :
15
- tag : ${{ github.event.inputs.tag }}
16
- if : github.repository == 'crenshaw-dev/argocd-executor-plugin'
17
15
prepare-release :
18
16
permissions :
19
17
contents : write # To push changes to release branch
25
23
26
24
RELEASE_TAG : ${{ github.event.inputs.tag }}
27
25
steps :
26
+ - uses : crenshaw-dev/argocd-executor-plugin/.github/workflows/build.yaml@main
27
+ with :
28
+ tag : ${{ github.event.inputs.tag }}
29
+ secrets :
30
+ DOCKERHUB_PASSWORD : ${{ github.event.secrets.DOCKERHUB_PASSWORD }}
31
+ if : github.repository == 'crenshaw-dev/argocd-executor-plugin'
28
32
- name : Checkout code
29
33
uses : actions/checkout@v3
30
34
with :
39
43
git config --global user.name "${GIT_USERNAME}"
40
44
41
45
git tag ${RELEASE_TAG}
42
- git push origin ${RELEASE_TAG}
46
+ git push origin ${RELEASE_TAG} --force
43
47
44
48
- name : Create GitHub release
45
49
uses : softprops/action-gh-release@v1
49
53
name : ${{ env.RELEASE_TAG }}
50
54
tag_name : ${{ env.RELEASE_TAG }}
51
55
generate_release_notes : true
56
+ body : |
57
+ Test.
You can’t perform that action at this time.
0 commit comments