forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.42 KB
/
docker_update_ethtool.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
33
34
35
36
37
38
39
40
41
42
43
# Anyone with write permissions to the antrea-io/antrea Github repository can
# trigger this workflow manually, but please check with a maintainer first. The
# workflow will build and push the antrea/ethtool image, with multi-platform
# support.
name: Manually update antrea/ethtool Docker image
on:
workflow_dispatch:
# It is unlikely that anyone will need to use non-default values for these inputs.
inputs:
antrea-ref:
description: 'The Git ref to use when checking-out the Antrea repository'
required: false
default: 'main'
docker-tag:
description: 'Tag for built Docker image'
required: false
default: 'latest'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check-out code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.antrea-ref }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: build/images/ethtool
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: antrea/ethtool:${{ github.event.inputs.docker-tag }}