File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 67
67
- name : onebusaway-api-webapp
68
68
context : oba
69
69
steps :
70
- - name : Compute image tag name
71
- run : echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME)" >> $GITHUB_ENV
70
+ - name : Compute image tag names
71
+ run : |
72
+ # Set the full version tag (e.g., 2.5.13-otsf-v5.0.0)
73
+ echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME)" >> $GITHUB_ENV
74
+ # Extract the software version (e.g., 2.5.13-otsf) and add -latest
75
+ echo "LATEST_TAG=$(echo $GITHUB_REF_NAME | sed 's/-v[0-9]\+\.[0-9]\+\.[0-9]\+/-latest/')" >> $GITHUB_ENV
72
76
- name : Checkout code
73
77
uses : actions/checkout@v4
74
78
- name : Set up QEMU
98
102
push : true
99
103
tags : |
100
104
opentransitsoftwarefoundation/${{ matrix.name }}:${{ env.IMAGE_TAG }}
105
+ opentransitsoftwarefoundation/${{ matrix.name }}:${{ env.LATEST_TAG }}
You can’t perform that action at this time.
0 commit comments