Skip to content

Commit 1c778c5

Browse files
committed
added arm docker runner
1 parent 99035a0 commit 1c778c5

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

.ci/docker_without_linux_setup_arm.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
6+
trap 'echo "$0: \"${last_command}\" command failed with exit code $?"' ERR
7+
8+
docker login --username klaxalk --password $TOKEN
9+
10+
docker build . --file docker/without_linux_setup --tag ctumrs/mrs_uav_system_arm:latest
11+
12+
docker push ctumrs/mrs_uav_system_arm:latest
13+
14+
WEEK_TAG="`date +%Y`_w`date +%V`"
15+
docker tag ctumrs/mrs_uav_system_arm:latest ctumrs/mrs_uav_system_arm:$WEEK_TAG
16+
17+
docker push ctumrs/mrs_uav_system_arm:$WEEK_TAG
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Docker_without_LS
2+
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *' # at the end of every day
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
cancel:
13+
14+
name: Cancel Previous Runs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Cancel Previous Runs
18+
uses: styfle/[email protected]
19+
with:
20+
access_token: ${{ github.token }}
21+
22+
build:
23+
runs-on: ubuntu-latest
24+
env:
25+
GITHUB_CI: true
26+
TOKEN: ${{ secrets.DOCKERHUB }}
27+
steps:
28+
29+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30+
- uses: actions/checkout@v2
31+
with:
32+
fetch-depth: 0 # fetch the whole history
33+
34+
- uses: uraimo/run-on-arch-action@v2
35+
name: Docker
36+
with:
37+
arch: aarch64
38+
distro: ubuntu20.04
39+
40+
run: ./.ci/docker_without_linux_setup_arm.sh

docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ MY_PATH=`( cd "$MY_PATH" && pwd )`
44

55
cd $MY_PATH
66

7-
docker build -f ./debian -t ctumrs/mrs_uav_system_debian:latest .
7+
docker build -f ./without_linux_setup -t ctumrs/mrs_uav_system:latest .

0 commit comments

Comments
 (0)