-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use latest stable magistrala after 0.14.0
Signed-off-by: Rodney Osodo <[email protected]>
- Loading branch information
1 parent
1ece713
commit b58c512
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright (c) Ultraviolet | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Build and Publish Magistrala Docker Image | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout main repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Clone Magistrala repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: absmach/magistrala | ||
ref: eb513e19df7371f0d01f5560566f230f6b267bac | ||
path: magistrala | ||
|
||
- name: Set up Docker Build | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and Push Magistrala Docker Image | ||
run: | | ||
cd magistrala | ||
MG_DOCKER_IMAGE_NAME_PREFIX="ghcr.io/ultravioletrs/cube" make docker_auth docker_invitations docker_users -j $(nproc) | ||
docker push ghcr.io/ultravioletrs/cube/auth:latest | ||
docker push ghcr.io/ultravioletrs/cube/invitations:latest | ||
docker push ghcr.io/ultravioletrs/cube/users:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters