forked from nasa/astrobee
-
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.
* only one run condition per action * making different action for testing * remove unnecessary tests, fix base * updating melodic python version * making ci run when its supposed to * using repository owner * adding repo_owner * fixing ubuntu 20, removing already uploaded images
- Loading branch information
1 parent
d56d9f0
commit 7d32bfa
Showing
6 changed files
with
238 additions
and
8 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
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,100 @@ | ||
name: Build, test and push packages CI | ||
|
||
on: | ||
push: | ||
branches: [ 'develop' ] | ||
|
||
jobs: | ||
|
||
build-xenial: | ||
|
||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodule | ||
run: git submodule update --init --depth 1 description/media | ||
|
||
- name: Build code for Ubuntu 16 | ||
run: docker build . -f ./scripts/docker/astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=16.04 | ||
--build-arg ROS_VERSION=kinetic | ||
--build-arg PYTHON='' | ||
--build-arg REMOTE=ghcr.io/${{ github.repository_owner }} | ||
-t ghcr.io/${{ github.repository_owner }}/astrobee:latest-ubuntu16.04 | ||
|
||
- name: Test code | ||
run: docker build . -f ./scripts/docker/test_astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=16.04 | ||
--build-arg REMOTE=ghcr.io/${{ github.repository_owner }} | ||
-t astrobee:test-ubuntu16.04 | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | ||
|
||
- name: Push Docker image | ||
run: | | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:latest-ubuntu16.04 | ||
build-bionic: | ||
|
||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodule | ||
run: git submodule update --init --depth 1 description/media | ||
|
||
- name: Build code for Ubuntu 18 | ||
run: docker build . -f ./scripts/docker/astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=18.04 | ||
--build-arg ROS_VERSION=melodic | ||
--build-arg PYTHON=3 | ||
--build-arg REMOTE=ghcr.io/${{ github.repository_owner }} | ||
-t ghcr.io/${{ github.repository_owner }}/astrobee:latest-ubuntu18.04 | ||
|
||
- name: Test code | ||
run: docker build . -f ./scripts/docker/test_astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=18.04 | ||
--build-arg REMOTE=ghcr.io/${{ github.repository_owner }} | ||
-t astrobee:test-ubuntu18.04 | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | ||
|
||
- name: Push Docker image | ||
run: | | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:latest-ubuntu18.04 | ||
build-focal: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodule | ||
run: git submodule update --init --depth 1 description/media | ||
|
||
- name: Build code for Ubuntu 20 | ||
run: docker build . -f ./scripts/docker/astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=20.04 | ||
--build-arg ROS_VERSION=noetic | ||
--build-arg PYTHON=3 | ||
--build-arg REMOTE=ghcr.io/${{ github.repository_owner }} | ||
-t ghcr.io/${{ github.repository_owner }}/astrobee:latest-ubuntu20.04 | ||
|
||
- name: Test code | ||
run: docker build . -f ./scripts/docker/test_astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=20.04 | ||
--build-arg REMOTE=ghcr.io/${{ github.repository_owner }} | ||
-t astrobee:test-ubuntu20.0 | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | ||
|
||
- name: Push Docker image | ||
run: | | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:latest-ubuntu20.04 |
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,127 @@ | ||
name: Build, test and push packages CI | ||
|
||
on: | ||
push: | ||
branches: [ 'release' ] | ||
|
||
jobs: | ||
|
||
build-xenial: | ||
|
||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodule | ||
run: git submodule update --init --depth 1 description/media | ||
|
||
- name: Build base for Ubuntu 16 | ||
run: docker build . -f ./scripts/docker/astrobee_base.Dockerfile | ||
--build-arg UBUNTU_VERSION=16.04 | ||
--build-arg ROS_VERSION=kinetic | ||
--build-arg PYTHON='' | ||
-t astrobee/astrobee:base-latest-ubuntu16.04 | ||
|
||
- name: Build code for Ubuntu 16 | ||
run: docker build . -f ./scripts/docker/astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=16.04 | ||
--build-arg ROS_VERSION=kinetic | ||
--build-arg PYTHON='' | ||
-t astrobee/astrobee:latest-ubuntu16.04 | ||
|
||
- name: Test code | ||
run: docker build . -f ./scripts/docker/test_astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=16.04 | ||
-t astrobee:test-ubuntu16.04 | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | ||
|
||
- name: Push Docker image | ||
run: | | ||
export VERSION=`grep -w -m 1 "Release" RELEASE.md | awk '{print $3}'` | ||
docker tag astrobee/astrobee:latest-base-ubuntu16.04 ghcr.io/${{ github.repository_owner }}/astrobee:latest-base-ubuntu16.04 | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:latest-base-ubuntu16.04 | ||
docker tag astrobee/astrobee:latest-ubuntu16.04 ghcr.io/${{ github.repository_owner }}/astrobee:v${VERSION}-ubuntu16.04 | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:v${VERSION}-ubuntu16.04 | ||
build-bionic: | ||
|
||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodule | ||
run: git submodule update --init --depth 1 description/media | ||
|
||
- name: Build base for Ubuntu 18 | ||
run: docker build . -f ./scripts/docker/astrobee_base.Dockerfile | ||
--build-arg UBUNTU_VERSION=18.04 | ||
--build-arg ROS_VERSION=melodic | ||
--build-arg PYTHON='' | ||
-t astrobee/astrobee:base-latest-ubuntu18.04 | ||
|
||
- name: Build code for Ubuntu 18 | ||
run: docker build . -f ./scripts/docker/astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=18.04 | ||
--build-arg ROS_VERSION=melodic | ||
--build-arg PYTHON='' | ||
-t astrobee/astrobee:latest-ubuntu18.04 | ||
|
||
- name: Test code | ||
run: docker build . -f ./scripts/docker/test_astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=18.04 | ||
-t astrobee:test-ubuntu18.04 | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | ||
|
||
- name: Push Docker image | ||
run: | | ||
export VERSION=`grep -w -m 1 "Release" RELEASE.md | awk '{print $3}'` | ||
docker tag astrobee/astrobee:latest-base-ubuntu18.04 ghcr.io/${{ github.repository_owner }}/astrobee:latest-base-ubuntu18.04 | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:latest-base-ubuntu18.04 | ||
docker tag astrobee/astrobee:latest-ubuntu18.04 ghcr.io/${{ github.repository_owner }}/astrobee:v${VERSION}-ubuntu18.04 | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:v${VERSION}-ubuntu18.04 | ||
build-focal: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodule | ||
run: git submodule update --init --depth 1 description/media | ||
|
||
- name: Build base for Ubuntu 20 | ||
run: docker build . -f ./scripts/docker/astrobee_base.Dockerfile | ||
--build-arg UBUNTU_VERSION=20.04 | ||
--build-arg ROS_VERSION=noetic | ||
--build-arg PYTHON=3 | ||
-t astrobee/astrobee:base-latest-ubuntu20.04 | ||
|
||
- name: Build code for Ubuntu 20 | ||
run: docker build . -f ./scripts/docker/astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=20.04 | ||
--build-arg ROS_VERSION=noetic | ||
--build-arg PYTHON=3 | ||
-t astrobee/astrobee:latest-ubuntu20.04 | ||
|
||
- name: Test code | ||
run: docker build . -f ./scripts/docker/test_astrobee.Dockerfile | ||
--build-arg UBUNTU_VERSION=20.04 | ||
-t astrobee:test-ubuntu20.04 | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | ||
|
||
- name: Push Docker image | ||
run: | | ||
export VERSION=`grep -w -m 1 "Release" RELEASE.md | awk '{print $3}'` | ||
docker tag astrobee/astrobee:latest-base-ubuntu20.04 ghcr.io/${{ github.repository_owner }}/astrobee:latest-base-ubuntu20.04 | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:latest-base-ubuntu20.04 | ||
docker tag astrobee/astrobee:latest-ubuntu20.04 ghcr.io/${{ github.repository_owner }}/astrobee:v${VERSION}-ubuntu20.04 | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:v${VERSION}-ubuntu20.04 |
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
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
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