Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation
# Copyright 2025 Canonical Ltd.
name: Release Pipeline

on:
push:
branches:
- master
paths:
- "VERSION"

permissions:
contents: read

jobs:
# Tag GitHub Release
# The convention is to prefix the version with a 'v', e.g., v1.2.3
tag-github:
uses: onosproject/.github/.github/workflows/tag-github.yml@main
with:
add_v: true
secrets: inherit

# Build and Release Docker Image
# The convention is to use the same tag for the Docker image as the GitHub Release
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:
docker_tag: ${{ needs.tag-github.outputs.version }}
secrets: inherit

# Bump Version
update-version:
needs: tag-github
if: needs.tag-github.outputs.changed == 'true'
uses: onosproject/.github/.github/workflows/bump-version.yml@main
secrets: inherit
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ images: aether-roc-gui-docker
docker-build: aether-roc-gui-docker

docker-push: # push to docker registy: use DOCKER_REGISTRY, DOCKER_REPOSITORY and DOCKER_TAG to customize
ifdef DOCKER_USER
ifdef DOCKER_PASSWORD
echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USER} --password-stdin
else
@echo "DOCKER_USER is specified but DOCKER_PASSWORD is missing"
@exit 1
endif
endif
docker push ${DOCKER_IMAGENAME}

kind-only:
Expand Down
Loading