File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,17 +7,6 @@ name: Java CI with Gradle for library
77on :
88 push :
99 workflow_dispatch :
10- inputs :
11- local_image_tag :
12- description : Local image tag used before push
13- required : false
14- type : string
15- default : application:0.0.1-SNAPSHOT
16- deploy_branch :
17- description : Branch required to push image
18- required : false
19- type : string
20- default : main
2110
2211concurrency :
2312 group : ${{ github.workflow }}-${{ github.ref }}
@@ -27,18 +16,10 @@ jobs:
2716 build-and-test :
2817 name : Build & Test
2918 runs-on : ubuntu-latest
30- permissions :
31- id-token : write # Needed to load credentials
32- contents : read # Needed to read repository (content)
3319 outputs :
3420 build_tag : ${{ steps.create_tag.outputs.build_tag }}
3521 environment :
3622 name : ci
37- env :
38- LOCAL_IMAGE_TAG : ${{ inputs.local_image_tag }}
39- DEPLOY_BRANCH : ${{ inputs.deploy_branch }}
40- IMAGE_REPOSITORY_PREFIX : ${{ inputs.image_repository_prefix }}${{ inputs.namespace }}
41- IS_TAG : ${{ github.ref_type == 'tag' }}
4223 steps :
4324 - name : Checkout repository
4425 uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
6748 - name : Build & Run Tests
6849 run : ./gradlew build --configuration-cache
6950
70- - name : Create Build Tag
71- id : create_tag
72- uses : ./.github/actions/create-build-tag
73-
74- - name : Repository Name
75- id : repo
76- shell : bash
77- run : |
78- echo "name=${GITHUB_REPOSITORY#*/}" >> "$GITHUB_OUTPUT"
79-
8051 reuse-compliance :
8152 name : REUSE Compliance
8253 uses : ./.github/workflows/reuse-compliance.yml
You can’t perform that action at this time.
0 commit comments