Skip to content

Commit 55f1d34

Browse files
authored
Publish Docker images to Docker Hub and GHCR (#231)
Signed-off-by: Andy Bavier <andybavier@gmail.com>
1 parent aee31fe commit 55f1d34

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/push.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright 2024 Intel Corporation
3+
# Copyright 2025 Canonical Ltd.
4+
name: Release Pipeline
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- "VERSION"
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
# CAUTION: Other actions depend on this name "tag-github"
18+
tag-github:
19+
uses: onosproject/.github/.github/workflows/tag-github.yml@main
20+
secrets: inherit
21+
22+
release-image:
23+
needs: tag-github
24+
if: needs.tag-github.outputs.changed == 'true'
25+
permissions:
26+
contents: read
27+
packages: write
28+
actions: read
29+
id-token: write
30+
attestations: write
31+
uses: onosproject/.github/.github/workflows/release-image.yml@main
32+
with:
33+
# Prefix the version with 'v' to follow tagging conventions
34+
docker_tag: v${{ needs.tag-github.outputs.version }}
35+
secrets: inherit
36+
37+
update-version:
38+
needs: tag-github
39+
if: needs.tag-github.outputs.changed == 'true'
40+
uses: onosproject/.github/.github/workflows/bump-version.yml@main
41+
secrets: inherit
42+
with:
43+
# Prefix the version with 'v' to follow tagging conventions
44+
version: v${{ needs.tag-github.outputs.version }}

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ aether-roc-api-docker: # @HELP build aether-roc-api Docker image
179179
-t ${DOCKER_IMAGENAME_API}
180180
@rm -rf vendor
181181

182+
# Docker targets for compatibility with GitHub workflow
183+
docker-build: # @HELP build Docker image
184+
docker-build: images
185+
186+
docker-push: # @HELP push Docker image
187+
docker-push:
188+
docker push ${DOCKER_IMAGENAME_API}
189+
182190
images: # @HELP build all Docker images
183191
images: build aether-roc-api-docker
184192

0 commit comments

Comments
 (0)