File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 77
77
cache-from : type=gha
78
78
cache-to : type=gha,mode=max
79
79
80
- - name : Get image digest
80
+ - name : Get primary image tag
81
81
id : image_digest
82
- run : echo "IMAGE_DIGEST=${{ steps.meta.outputs.tags }}" >> $GITHUB_OUTPUT
82
+ run : |
83
+ PRIMARY_TAG=$(echo "${{ steps.meta.outputs.tags }}" | head -n 1)
84
+ echo "IMAGE_DIGEST=${PRIMARY_TAG}" >> $GITHUB_OUTPUT
83
85
84
86
test :
85
87
needs : build
@@ -96,15 +98,13 @@ jobs:
96
98
97
99
- name : Pull Docker image
98
100
run : |
99
- # Extract the first tag from the tags list
100
- IMAGE_TAG=$(echo "${{ needs.build.outputs.image_digest }}" | tr ' ' '\n' | head -n 1)
101
+ IMAGE_TAG="${{ needs.build.outputs.image_digest }}"
101
102
echo "Using image: ${IMAGE_TAG}"
102
103
docker pull ${IMAGE_TAG}
103
104
104
105
- name : Run tests in container
105
106
run : |
106
- # Extract the first tag from the tags list
107
- IMAGE_TAG=$(echo "${{ needs.build.outputs.image_digest }}" | tr ' ' '\n' | head -n 1)
107
+ IMAGE_TAG="${{ needs.build.outputs.image_digest }}"
108
108
109
109
# Run the container with test environment
110
110
docker run --name cws-test -d \
You can’t perform that action at this time.
0 commit comments