Skip to content

Commit 263f4cf

Browse files
authored
Update image.yml
Signed-off-by: fred-labs <[email protected]>
1 parent 566ad6e commit 263f4cf

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/image.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
context: .
4646
file: .github/workflows/Dockerfile
4747
push: true
48-
tags: ghcr.io/cps-test-lab/scenario-execution:${{ github.event.pull_request.base.ref || steps.extract_branch.outputs.branch }}
48+
tags: ghcr.io/cps-test-lab/scenario-execution:latest
4949
build-args: |
50-
ROS_DISTRO=${{ github.ref == 'refs/heads/main' && 'humble' || github.event.pull_request.base.ref == 'main' && 'humble' || github.event.pull_request.base.ref }}
50+
ROS_DISTRO=jazzy
5151
test-devcontainer:
5252
runs-on: ubuntu-latest
5353
permissions:
@@ -57,15 +57,11 @@ jobs:
5757
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
5858
- name: Set up Docker Buildx
5959
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 #v3.0.0
60-
- name: Extract branch name
61-
shell: bash
62-
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT"
63-
id: extract_branch
6460
- name: Build Docker image
6561
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 #v5.0.0
6662
with:
6763
context: .
6864
file: .devcontainer/Dockerfile
6965
push: false
7066
build-args: |
71-
ROS_DISTRO=${{ github.ref == 'refs/heads/main' && 'humble' || github.event.pull_request.base.ref == 'main' && 'humble' || github.event.pull_request.base.ref }}
67+
ROS_DISTRO=jazzy

0 commit comments

Comments
 (0)