diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..e813851 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2024 Intel Corporation +# Copyright 2025 Canonical Ltd. +name: Release Pipeline + +on: + push: + branches: + - main + 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 + secrets: inherit + + release-image: + needs: tag-github + if: needs.tag-github.outputs.changed == 'true' + permissions: + contents: read + packages: write + actions: read + id-token: write + attestations: write + uses: onosproject/.github/.github/workflows/release-image.yml@main + with: + # Prefix the version with 'v' to follow tagging conventions + docker_tag: v${{ needs.tag-github.outputs.version }} + 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: + # Prefix the version with 'v' to follow tagging conventions + version: v${{ needs.tag-github.outputs.version }} diff --git a/Makefile b/Makefile index 7536c74..c3c665f 100644 --- a/Makefile +++ b/Makefile @@ -179,6 +179,14 @@ aether-roc-api-docker: # @HELP build aether-roc-api Docker image -t ${DOCKER_IMAGENAME_API} @rm -rf vendor +# Docker targets for compatibility with GitHub workflow +docker-build: # @HELP build Docker image +docker-build: images + +docker-push: # @HELP push Docker image +docker-push: + docker push ${DOCKER_IMAGENAME_API} + images: # @HELP build all Docker images images: build aether-roc-api-docker