forked from kubeedge/kubeedge
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 1.01 KB
/
build-tools.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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