Skip to content

Bump version for testing #6

Bump version for testing

Bump version for testing #6

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation
# Copyright 2025 Canonical Ltd.
name: Release Pipeline
on:
push:
branches:
- main
- docker-publish-oci
paths:
- "VERSION"
permissions:
contents: read
jobs:
# CAUTION: Other actions depend on this name "tag-github"
tag-github:
# uses: onosproject/.github/.github/workflows/tag-github.yml@main
uses: ./.github/workflows/tag-github.yml
secrets: inherit
check-dockerhub-credentials:
runs-on: ubuntu-latest
outputs:
has_credentials: ${{ steps.check.outputs.has_credentials }}
steps:
- id: check
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
run: |
if [[ -n "$DOCKERHUB_USERNAME" && -n "$DOCKERHUB_PASSWORD" ]]; then
echo "has_credentials=true" >> $GITHUB_OUTPUT
else
echo "has_credentials=false" >> $GITHUB_OUTPUT
echo "::warning::DOCKERHUB_USERNAME or DOCKERHUB_PASSWORD is not set, skipping release-image job"
fi
release-image:
needs: [tag-github, check-dockerhub-credentials]
if: needs.check-dockerhub-credentials.outputs.has_credentials == 'true'
permissions:
contents: read
packages: write
actions: read
id-token: write
attestations: write
uses: omec-project/.github/.github/workflows/release-image.yml@main
with:
changed: ${{ needs.tag-github.outputs.changed }}
version: ${{ needs.tag-github.outputs.version }}
docker_repository: andybavier/
secrets: inherit
update-version:
needs: tag-github
if: needs.tag-github.outputs.changed == 'true'
uses: onosproject/.github/.github/workflows/bump-version.yml@main
secrets: inherit
with:
version: ${{ needs.tag-github.outputs.version }}