@@ -42,30 +42,27 @@ inputs:
42
42
docker_tag :
43
43
required : false
44
44
description : ' additional docker tags'
45
- do_push :
46
- required : false
47
- default : ' false'
48
- description : ' whether or not to actually push the image'
45
+
49
46
runs :
50
47
using : " composite"
51
48
steps :
52
49
- uses : actions/checkout@v4
53
-
54
- - name : Download OpenTelemetry
55
- shell : bash
56
- run : |-
57
- # "jq -r" removes the quotation marks, that would trip up "wget"
58
- URL=$(grep "val openTelemetryAgentUrl = " build.gradle.kts | awk -F'= ' '{print $2}' | jq -r)
59
- wget -O ${{ inputs.rootDir }}/opentelemetry-javaagent.jar -q $URL
60
-
61
- # ####################
62
- # Login to DockerHub
63
- # ####################
64
- - name : DockerHub login
65
- uses : docker/login-action@v2
66
- with :
67
- username : ${{ inputs.docker_user }}
68
- password : ${{ inputs.docker_token }}
50
+ #
51
+ # - name: Download OpenTelemetry
52
+ # shell: bash
53
+ # run: |-
54
+ # # "jq -r" removes the quotation marks, that would trip up "wget"
55
+ # URL=$(grep "val openTelemetryAgentUrl = " build.gradle.kts | awk -F'= ' '{print $2}' | jq -r)
56
+ # wget -O ${{ inputs.rootDir }}/opentelemetry-javaagent.jar -q $URL
57
+ #
58
+ # #####################
59
+ # # Login to DockerHub
60
+ # #####################
61
+ # - name: DockerHub login
62
+ # uses: docker/login-action@v2
63
+ # with:
64
+ # username: ${{ inputs.docker_user }}
65
+ # password: ${{ inputs.docker_token }}
69
66
70
67
# ####################
71
68
# Build JAR file
74
71
- name : Build Controlplane
75
72
shell : bash
76
73
run : |-
77
- ./gradlew -p ${{ inputs.rootDir }} shadowJar
74
+ # ./gradlew -p ${{ inputs.rootDir }} dockerize
75
+ echo "test"
78
76
79
77
# ##############################
80
78
# Set metadata of docker image
95
93
type=raw,value=latest,enable={{is_default_branch}}
96
94
type=sha
97
95
96
+ - shell : bash
97
+ run : |
98
+ echo "TAGS:"
99
+ echo ${{ steps.meta.outputs.tags }}
100
+ echo "LABELS:"
101
+ echo ${{ steps.meta.outputs.labels }}
102
+
98
103
# ##############################
99
104
# Build and push the image
100
105
# ##############################
@@ -106,7 +111,7 @@ runs:
106
111
build-args : |
107
112
JAR=${{ inputs.rootDir }}/build/libs/${{ inputs.imagename }}.jar
108
113
OTEL_JAR=${{ inputs.rootDir }}/opentelemetry-javaagent.jar
109
- push : ${{ inputs.do_push == ' true' }}
114
+ push : true
110
115
tags : ${{ steps.meta.outputs.tags }}
111
116
labels : ${{ steps.meta.outputs.labels }}
112
117
0 commit comments