blob: 8173e842a765674b2432ee78a136353b9b88056d [file] [log] [blame]
Eric Balle8e6fa22026-06-27 16:57:30 -07001---
2# SPDX-License-Identifier: Apache-2.0
3# Copyright 2026 The Linux Foundation
4
5name: voltha-openolt-adapter release
6
7# yamllint disable-line rule:truthy
8on:
9 workflow_dispatch:
10 push:
11 # Only invoked on release tag pushes
12 tags:
13 - v*.*.*
14
15permissions:
16 contents: write
17
18jobs:
19 release:
20 runs-on: ubuntu-latest
21 steps:
22 - name: Checkout repository
23 # yamllint disable-line rule:line-length
24 uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
25 with:
26 fetch-depth: 0
27
28 - name: Build and publish Docker image
29 # yamllint disable-line rule:line-length
30 uses: opencord/shared-workflows/.github/actions/docker-publish-action@main
31 with:
32 docker-registry: ""
33 docker-repository: "voltha/"
34 image-name: ${{ github.event.repository.name }}
35 branch-tag: ${{ github.ref_name }}
36 docker-username: ${{ secrets.DOCKER_USERNAME }}
37 docker-password: ${{ secrets.DOCKER_PASSWORD }}
38 extra-environment-vars: "BUILD_PROFILED=true BUILD_RACE=true"