-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (32 loc) · 980 Bytes
/
base-image.yaml
File metadata and controls
39 lines (32 loc) · 980 Bytes
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
---
name: Build sonic base image
on: workflow_dispatch
env:
REGISTRY: ghcr.io
jobs:
build-mini-lab-sonic-base-image:
name: build mini-lab-sonic base image
runs-on: ubuntu-latest
strategy:
matrix:
flavors:
- name: 202311
- name: 202411
steps:
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push mini-lab-sonic-base container
uses: docker/build-push-action@v6
with:
push: true
sbom: true
file: images/sonic/base-${{ matrix.flavors.name }}/Dockerfile
tags: ${{ env.REGISTRY }}/metal-stack/mini-lab-sonic-base:${{ matrix.flavors.name }}