Skip to content

Commit

Permalink
network devices with ui (#916)
Browse files Browse the repository at this point in the history
* network devices backend
* network devices UI
----
Co-authored-by: Aleksander <[email protected]>
  • Loading branch information
filipslezaklab authored Dec 24, 2024
1 parent 9c95286 commit 0e95c9a
Show file tree
Hide file tree
Showing 128 changed files with 5,639 additions and 1,631 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ jobs:
- ${{ matrix.runner }}
strategy:
matrix:
cpu: [arm64, amd64, arm/v7]
# cpu: [arm64, amd64, arm/v7]
cpu: [amd64]
include:
- cpu: arm64
runner: ARM64
tag: arm64
# - cpu: arm64
# runner: ARM64
# tag: arm64
- cpu: amd64
runner: X64
tag: amd64
- cpu: arm/v7
runner: ARM
tag: armv7
# - cpu: arm/v7
# runner: ARM
# tag: armv7
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -62,30 +63,30 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

docker-manifest:
runs-on: [self-hosted, Linux]
needs: [build-docker]
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.GHCR_REPO }}
flavor: ${{ inputs.flavor }}
tags: ${{ inputs.tags }}
- name: Login to GitHub container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and push manifests
run: |
tags='${{ env.GHCR_REPO }}:${{ github.sha }} ${{ steps.meta.outputs.tags }}'
for tag in ${tags}
do
docker manifest rm ${tag} || true
docker manifest create ${tag} ${{ env.GHCR_REPO }}:${{ github.sha }}-amd64 ${{ env.GHCR_REPO }}:${{ github.sha }}-arm64 ${{ env.GHCR_REPO }}:${{ github.sha }}-armv7
docker manifest push ${tag}
done
# docker-manifest:
# runs-on: [self-hosted, Linux]
# needs: [build-docker]
# steps:
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: |
# ${{ env.GHCR_REPO }}
# flavor: ${{ inputs.flavor }}
# tags: ${{ inputs.tags }}
# - name: Login to GitHub container registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Create and push manifests
# run: |
# tags='${{ env.GHCR_REPO }}:${{ github.sha }} ${{ steps.meta.outputs.tags }}'
# for tag in ${tags}
# do
# docker manifest rm ${tag} || true
# docker manifest create ${tag} ${{ env.GHCR_REPO }}:${{ github.sha }}-amd64 ${{ env.GHCR_REPO }}:${{ github.sha }}-arm64 ${{ env.GHCR_REPO }}:${{ github.sha }}-armv7
# docker manifest push ${tag}
# done
14 changes: 7 additions & 7 deletions .github/workflows/current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Build current image
on:
push:
branches:
- main
- dev
# - main
# - dev
- network-devices
paths-ignore:
- "*.md"
- "LICENSE"
Expand All @@ -17,11 +18,10 @@ jobs:
uses: ./.github/workflows/build-docker.yml
with:
tags: |
type=raw,value=current
type=ref,event=branch
type=sha
trigger-e2e:
needs: build-current
uses: ./.github/workflows/e2e.yml
secrets: inherit
# trigger-e2e:
# needs: build-current
# uses: ./.github/workflows/e2e.yml
# secrets: inherit

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0e95c9a

Please sign in to comment.