Merge pull request #6016 from Shelley-BaoYue/changelog #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build build-tools image, and push it to DockerHub | |
on: | |
push: | |
# trigger CI only when build-tools dockerfile updated and merged to master branch | |
branches: | |
- master | |
paths: | |
- 'build/docker/build-tools/build-tools.dockerfile' | |
jobs: | |
publish-image-to-dockerhub: | |
name: publish to DockerHub | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
with: | |
# fetch-depth: | |
# 0 indicates all history for all branches and tags. | |
# for `git describe --tags` in Makefile. | |
fetch-depth: 0 | |
- name: install QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: install Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USER_NAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: build and publish images | |
run: build/docker/build-tools/make-build-tools.sh push |