File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,16 @@ jobs:
31
31
KUBERNETES_MANIFEST_PATH : " ${{ vars.KUBERNETES_MANIFEST_PATH }}"
32
32
AZURE_RESOURCE_GROUP : " ${{ vars.AZURE_RESOURCE_GROUP }}"
33
33
AZURE_CONTAINER_REGISTRY : " ${{ vars.AZURE_CONTAINER_REGISTRY }}"
34
+ outputs :
35
+ GH_REF_NAME : ${{ steps.branch_name.outputs.GH_REF_NAME }}
34
36
steps :
35
37
# Checkout the repository to the GitHub Actions runner
36
38
- name : Checkout
37
39
uses : actions/checkout@v4
40
+
41
+ - name : Configure branch name
42
+ id : branch_name
43
+ run : echo "GH_REF_NAME=${GITHUB_REF_NAME//\//-}" >> $GITHUB_OUTPUT
38
44
39
45
- name : GitHub Configuration
40
46
run : git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com
69
75
bash cicd-deployment-scripts/k8s/test.sh \
70
76
-n ${{ env.KUBERNETES_NAMESPACE }} \
71
77
-d ${{ github.event.repository.name }} \
72
- -t test-${{ github.head_ref }} \
78
+ -t test-${{ steps.branch_name.outputs.GH_REF_NAME }} \
73
79
-r ${{ env.AZURE_CONTAINER_REGISTRY }} \
74
80
-c "${{ inputs.test_cmd }}"
75
81
78
84
needs : [k8-test]
79
85
secrets : inherit
80
86
with :
81
- image_tag : " test-${{ github.head_ref }}"
87
+ image_tag : " test-${{ needs.k8-test.outputs.GH_REF_NAME }}"
You can’t perform that action at this time.
0 commit comments