-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG | ||
trap 'echo "$0: \"${last_command}\" command failed with exit code $?' ERR | ||
|
||
git clone https://github.com/ctu-mrs/mrs_docker | ||
cd mrs_docker/recipes | ||
|
||
docker login --username klaxalk --password $TOKEN | ||
|
||
# docker build . --file docker/without_linux_setup --tag ctumrs/mrs_uav_system:latest | ||
|
||
docker buildx create --name container --driver=docker-container | ||
docker buildx build --push . --file Dockerfile --builder container --tag ctumrs/mrs_uav_system:latest --platform=linux/amd64,linux/arm64 | ||
|
||
WEEK_TAG="`date +%Y`_w`date +%V`" | ||
docker tag ctumrs/mrs_uav_system:latest ctumrs/mrs_uav_system:$WEEK_TAG | ||
|
||
docker buildx imagetools create -t ctumrs/mrs_uav_system:latest ctumrs/mrs_uav_system:$WEEK_TAG --push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: docker | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
|
||
schedule: | ||
- cron: '0 10 * * *' | ||
|
||
jobs: | ||
|
||
generate-jobs: | ||
needs: init-artifacts | ||
runs-on: ubuntu-20.04 | ||
env: | ||
TOKEN: ${{ secrets.DOCKERHUB }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: 'recursive' | ||
- id: build | ||
run: | | ||
./.ci/build_docker.sh |