File tree Expand file tree Collapse file tree 3 files changed +39
-10
lines changed Expand file tree Collapse file tree 3 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 1515name : End-to-end Tests
1616
1717on :
18- workflow_run :
19- workflows : [image]
20- types :
21- - completed
22- branches :
23- - " pull-request/[0-9]+"
24- - main
25- - release-*
18+ workflow_call :
19+ inputs : {}
20+ secrets :
21+ AWS_ACCESS_KEY_ID :
22+ required : true
23+ AWS_SECRET_ACCESS_KEY :
24+ required : true
25+ AWS_SSH_KEY :
26+ required : true
27+ E2E_SSH_USER :
28+ required : true
29+ SLACK_BOT_TOKEN :
30+ required : true
31+ SLACK_CHANNEL_ID :
32+ required : true
2633
2734jobs :
2835 e2e-tests :
2936 runs-on : linux-amd64-cpu4
30- if : ${{ github.event.workflow_run.conclusion == 'success' }}
3137 steps :
3238 - name : Check out code
3339 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -122,3 +122,9 @@ jobs:
122122 run : |
123123 echo "${VERSION}"
124124 make -f deployments/container/Makefile build-${{ matrix.dist }}
125+
126+ test :
127+ name : End-to-end Tests
128+ uses : ./.github/workflows/e2e.yaml
129+ secrets : inherit
130+ needs : image
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
15+ PUSH_ON_BUILD ?= false
16+ ARCH ?= $(shell uname -m)
17+ DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/$(ARCH )
18+
19+ ifeq ($(PUSH_ON_BUILD ) ,true)
20+ $(BUILD_TARGETS ) : build-%
21+ $(DOCKER ) push " $( IMAGE) "
22+ else
23+ $(BUILD_TARGETS ) : build-%
24+ endif
25+
26+ # For the default distribution we also retag the image.
27+ # Note: This needs to be updated for multi-arch images.
28+ ifeq ($(IMAGE_TAG ) ,$(VERSION ) -$(DIST ) )
29+ $(DEFAULT_PUSH_TARGET ) :
30+ $(DOCKER ) image inspect $(IMAGE ) > /dev/null || $(DOCKER ) pull $(IMAGE )
31+ $(DOCKER ) tag $(IMAGE ) $(subst :$(IMAGE_TAG ) ,:$(VERSION ) ,$(IMAGE ) )
32+ endif
You can’t perform that action at this time.
0 commit comments