-
Notifications
You must be signed in to change notification settings - Fork 36
49 lines (42 loc) · 1.23 KB
/
image-push-release.yaml
File metadata and controls
49 lines (42 loc) · 1.23 KB
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
44
45
46
47
48
49
name: "push images on release"
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
on:
push:
tags:
- v*
jobs:
build-and-push-ib-sriov-cni:
runs-on: ubuntu-24.04
name: build and push multi-arch image (Release)
steps:
- name: check out the repo
uses: actions/checkout@v6
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: login to Docker
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: docker meta
id: docker_meta
uses: docker/metadata-action@v6
with:
images: ${{ env.IMAGE_NAME }}
flavor: |
latest=false
tags: |
type=ref,event=tag
- name: build and push ib-sriov-cni (multi-arch)
uses: docker/build-push-action@v7
with:
context: .
push: true
platforms: ${{ env.PLATFORMS }}
tags: |
${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
file: ./Dockerfile