Update ci_ros2_humble.yaml #16
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
name: Deploy Opensource Image to GHCR | |
on: | |
push: | |
branches: [ "ros2_humble" ] | |
pull_request: | |
branches: [ "ros2_humble" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout GitHub Action" | |
uses: actions/checkout@v3 | |
- name: "Login to GitHub Container Registry" | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: "Build the Docker image" | |
run: | | |
mkdir src | |
echo "jupyterlab" > requirements.txt | |
docker build . --file .github/workflows/Dockerfile.ros2_humble --tag ghcr.io/simonschwaiger/ros-ml-container:ros2_humble | |
docker push ghcr.io/simonschwaiger/ros-ml-container:ros2_humble |