Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOISSUE - Refactor CI #40

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 2 additions & 6 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ on:
paths:
- ".github/workflows/cd.yaml"
- "**.go"

workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
Expand All @@ -30,10 +28,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Fetch tags for the build
run: |
git fetch --prune --unshallow --tags
with:
fetch-depth: 0

- name: Set up Docker Build
uses: docker/setup-buildx-action@v3
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ui-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:
schedule:
- cron: '0 8 * * 6'
push:
branches: [main]
branches:
- main
workflow_dispatch:

env:
REGISTRY: ghcr.io
Expand All @@ -25,20 +27,22 @@ jobs:
uses: actions/checkout@v4
with:
path: cube
fetch-depth: 0

- name: Checkout UI repository
uses: actions/checkout@v4
with:
repository: absmach/magistrala-ui-new
path: ui
fetch-depth: 0
token: ${{ secrets.GITHUBPAT }}

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUBPAT }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set UI Type in .env File
run: |
Expand Down