Skip to content

Cicd #27

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

Closed
wants to merge 3 commits into from
Closed

Cicd #27

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
12 changes: 8 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
name: CI/CD

on:
push:
# branches:
# - main
pull_request:
branches:
- main
# for testing purposes, uncomment the following line
# push:
# branches:
# - '**'

jobs:
build:
Expand Down Expand Up @@ -48,7 +52,7 @@ jobs:
path: bin/jetson06

deploy:
runs-on: [seame]
runs-on: [seame] # change delivery runner flag here
needs: build

steps:
Expand Down
16 changes: 16 additions & 0 deletions CICD/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
# missing qt libraries

FROM balenalib/jetson-nano-ubuntu:bionic

RUN apt-get update && apt-get install -y \
apt-utils \
build-essential \
cmake \
libgpiod-dev \
libi2c-dev \
# libgl1-mesa-dev \
# qtbase5-dev \
# qtbase5-dev-tools \
# qtchooser \
# qtdeclarative5-dev \
# qml-module-qtquick2 \
# qml-module-qtquick-layouts \
# libqt5gui5 \
# libqt5qml5 \
# libqt5quick5 \
# libqt5quickcontrols2-5 \
# qml-module-qtqml \
# qml-module-qtquick-controls \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down
14 changes: 9 additions & 5 deletions CICD/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
name: CI/CD

on:
push:
# branches:
# - main
pull_request:
branches:
- main
# for testing purposes, uncomment the following line
# push:
# branches:
# - '**'

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # change delivery runner flag here [seame]

steps:
- name: Checkout repository
Expand Down Expand Up @@ -48,7 +52,7 @@ jobs:
path: bin/jetson06

deploy:
runs-on: [seame]
runs-on: [seame] # change delivery runner flag here
needs: build

steps:
Expand Down
4 changes: 4 additions & 0 deletions CICD/updatedockerimage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker build --rm -t jmoreiraseame/jetson-nano-ubuntu:bionic --platform Linux/ARM64 .
docker push jmoreiraseame/jetson-nano-ubuntu:bionic
18 changes: 0 additions & 18 deletions CMakeLists.txt

This file was deleted.

Empty file removed inc/.keep
Empty file.
6 changes: 0 additions & 6 deletions src/main.cpp

This file was deleted.

Empty file removed test
Empty file.
Loading