File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : publish to dockerhub
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ tag :
7
+ description : ' Tag to publish under, defaults to latest'
8
+ required : false
9
+ default : latest
10
+ branch :
11
+ description : ' Branch to run publish from'
12
+ required : true
13
+ dry-run :
14
+ description : ' Run in dry-run mode'
15
+ type : boolean
16
+ required : false
17
+ default : true
18
+
19
+ jobs :
20
+ push_to_registry :
21
+ environment : release
22
+ name : Push Docker image to Docker Hub
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : Check out the repo
26
+ uses : actions/checkout@v4
27
+ with :
28
+ ref : ${{ github.event.inputs.branch }}
29
+
30
+ - name : Log in to Docker Hub
31
+ uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
32
+ with :
33
+ username : ${{ secrets.IOTALEDGER_DOCKER_USERNAME }}
34
+ password : ${{ secrets.IOTALEDGER_DOCKER_PASSWORD }}
35
+
36
+ - name : Build and push Docker image
37
+ uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
38
+ with :
39
+ context : .
40
+ file : ./Dockerfile
41
+ push : ${{ !inputs.dry-run }}
42
+ labels : iotaledger/identity-grpc:${{ inputs.tag }}
You can’t perform that action at this time.
0 commit comments