Skip to content

Commit

Permalink
fix: use latest stable magistrala after 0.14.0
Browse files Browse the repository at this point in the history
Signed-off-by: Rodney Osodo <[email protected]>
  • Loading branch information
rodneyosodo committed Nov 6, 2024
1 parent 1ece713 commit b58c512
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/push-magistrala.yaml
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
6 changes: 3 additions & 3 deletions docker/magistrala-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ services:
- cube-network

auth:
image: magistrala/auth:${MG_RELEASE_TAG}
image: ghcr.io/ultravioletrs/cube/auth:${MG_RELEASE_TAG}
container_name: magistrala-auth
depends_on:
- auth-db
Expand Down Expand Up @@ -175,7 +175,7 @@ services:
- cube-network

users:
image: magistrala/users:${MG_RELEASE_TAG}
image: ghcr.io/ultravioletrs/cube/users:${MG_RELEASE_TAG}
container_name: magistrala-users
depends_on:
- users-db
Expand Down Expand Up @@ -266,7 +266,7 @@ services:
- cube-network

invitations:
image: magistrala/invitations:${MG_RELEASE_TAG}
image: ghcr.io/ultravioletrs/cube/invitations:${MG_RELEASE_TAG}
container_name: magistrala-invitations
restart: on-failure
depends_on:
Expand Down

0 comments on commit b58c512

Please sign in to comment.