| Eric Ball | c5bab84 | 2026-06-26 18:12:36 -0700 | [diff] [blame^] | 1 | --- |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright 2026 The Linux Foundation |
| 4 | |
| 5 | name: voltha-docker-tools release |
| 6 | |
| 7 | # yamllint disable-line rule:truthy |
| 8 | on: |
| 9 | workflow_dispatch: |
| 10 | push: |
| 11 | # Only invoked on release tag pushes |
| 12 | tags: |
| 13 | - v*.*.* |
| 14 | |
| 15 | permissions: |
| 16 | contents: write |
| 17 | |
| 18 | jobs: |
| 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 | # Empty: BBSim's Makefile builds the tag as |
| 33 | # ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim, so the registry |
| 34 | # prefix is left blank and images are pushed to Docker Hub. |
| 35 | docker-registry: "" |
| 36 | docker-repository: "voltha/" |
| 37 | image-name: "voltha-ci-tools" |
| 38 | branch-tag: ${{ github.ref_name }} |
| 39 | docker-username: ${{ secrets.DOCKER_USERNAME }} |
| 40 | docker-password: ${{ secrets.DOCKER_PASSWORD }} |