Skip to content

Commit

Permalink
Add simulation compose edit
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelirh committed Apr 25, 2024
1 parent a3deae5 commit 577bc77
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/release-repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ on:
description: Target branch for the release.
required: true
version:
description: New version (used for tag and package versioning).
description: New version (used for tag).
required: true
image_timestamp:
description: Timestamp of the image to be used in the compose files.
required: true
release_name:
description: Name of the release to be created. Version in the first place is recommended (e.g. `2.0.0-alpha`).
Expand All @@ -29,27 +32,19 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCH: release-${{ github.event.inputs.version }}
DOCKER_IMAGE: husarion/panther-gazebo:humble-${{ github.event.inputs.version }}-${{ github.event.inputs.image_timestamp }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.target_branch }}

# - name: Create release branch
# run: |
# git checkout -b $RELEASE_BRANCH
# git push -u origin $RELEASE_BRANCH

- name: Update docker image version
uses: mikefarah/[email protected]
with:
cmd: yq -i '.services.panther_ros.image = "new_tag"' demo/compose.minimal-setup.yaml

# - name: Commit changes
# run: |
# git add .
# git commit -m "Update docker image version"
# git push origin $RELEASE_BRANCH
cmd: |
yq -i '.services.panther_ros.image = "${{ env.DOCKER_IMAGE }}" | (... | select(tag == "!!merge")) tag = ""' demo/compose.minimal-setup.yaml
yq -i '.services.panther_gazebo.image = "${{ env.DOCKER_IMAGE }}" | (... | select(tag == "!!merge")) tag = ""' demo/compose.simulation.yaml
- name: Commit changes to release branch
uses: EndBug/add-and-commit@v9
Expand Down

0 comments on commit 577bc77

Please sign in to comment.