Skip to content

Commit

Permalink
Fix main CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-labs committed Jul 25, 2024
1 parent e7758ee commit ce32d17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: test-image
on:
push:
branches: [main]
branches: [main, humble, jazzy]
paths:
- 'deb_requirements.txt'
- 'requirements.txt'
- '.github/workflows/Dockerfile'
pull_request:
branches: [main]
branches: [main, humble, jazzy]
paths:
- 'deb_requirements.txt'
- 'requirements.txt'
Expand All @@ -33,12 +33,16 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 #v3.0.0
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT"
id: extract_branch
- name: Build and push Docker image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 #v5.0.0
with:
context: .
file: .github/workflows/Dockerfile
push: true
tags: ghcr.io/intellabs/scenario-execution:${{ github.event.pull_request.base.ref }}
tags: ghcr.io/intellabs/scenario-execution:${{ github.event.pull_request.base.ref || steps.extract_branch.outputs.branch }}
build-args: |
ROS_DISTRO=${{ github.ref == 'refs/heads/main' && 'humble' || github.event.pull_request.base.ref == 'main' && 'humble' || github.event.pull_request.base.ref }}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ antlr4-python3-runtime==4.7.2
transforms3d==0.3.1
pexpect==4.9.0
defusedxml==0.7.1
pyyaml==6.0.1
pyyaml==6.0.1

0 comments on commit ce32d17

Please sign in to comment.