Skip to content

Commit

Permalink
Rename new_tag to new_version in workflow definition for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ll-nick committed Nov 21, 2024
1 parent 95bcfb3 commit e7934b9
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
permissions:
contents: write
outputs:
new_tag: ${{ steps.bump_version.outputs.new_tag }}
new_version: ${{ steps.bump_version.outputs.new_version }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
Expand All @@ -38,18 +38,18 @@ jobs:

- name: Update version file with new version
run: |
echo "New version: ${{ needs.compute-version.outputs.new_tag }}"
echo "VERSION=${{ needs.compute-version.outputs.new_tag }}" > version
echo "New version: ${{ needs.compute-version.outputs.new_version }}"
echo "VERSION=${{ needs.compute-version.outputs.new_version }}" > version
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add version
git commit -m "chore: update version file to ${{ needs.compute-version.outputs.new_tag }}"
git commit -m "chore: update version file to ${{ needs.compute-version.outputs.new_version }}"
git push
- name: Push new tag
run: |
git tag ${{ needs.compute-version.outputs.new_tag }}
git push origin ${{ needs.compute-version.outputs.new_tag }}
git tag ${{ needs.compute-version.outputs.new_version }}
git push origin ${{ needs.compute-version.outputs.new_version }}
create-release:
Expand All @@ -62,7 +62,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.compute-version.outputs.new_tag }}
ref: ${{ needs.compute-version.outputs.new_version }}

- name: Build release packages
uses: docker/build-push-action@v6
Expand All @@ -82,7 +82,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: "/tmp/artifacts/release/*"
tag: ${{ needs.compute-version.outputs.new_tag }}
tag: ${{ needs.compute-version.outputs.new_version }}
body: ${{ github.event.pull_request.body }}

build-and-run-release-tests:
Expand All @@ -93,7 +93,7 @@ jobs:
uses: docker/build-push-action@v6
with:
build-args: |
RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/arbitration_graphs/releases/download/${{ needs.compute-version.outputs.new_tag }}
RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/arbitration_graphs/releases/download/${{ needs.compute-version.outputs.new_version }}
push: false
tags: release_tester_core
target: release_test_core
Expand All @@ -106,7 +106,7 @@ jobs:
uses: docker/build-push-action@v6
with:
build-args: |
RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/arbitration_graphs/releases/download/${{ needs.compute-version.outputs.new_tag }}
RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/arbitration_graphs/releases/download/${{ needs.compute-version.outputs.new_version }}
push: false
tags: release_tester_gui
target: release_test_gui
Expand Down Expand Up @@ -143,32 +143,32 @@ jobs:
push: true
tags: |
ghcr.io/kit-mrt/arbitration_graphs:latest
ghcr.io/kit-mrt/arbitration_graphs:${{ needs.compute-version.outputs.new_tag }}
ghcr.io/kit-mrt/arbitration_graphs:${{ needs.compute-version.outputs.new_version }}
target: install

- name: Build and push Pacman demo Docker image
uses: docker/build-push-action@v6
with:
build-args: |
VERSION=${{ needs.compute-version.outputs.new_tag }}
VERSION=${{ needs.compute-version.outputs.new_version }}
context: demo
file: demo/Dockerfile
push: true
tags: |
ghcr.io/kit-mrt/arbitration_graphs_pacman_demo:latest
ghcr.io/kit-mrt/arbitration_graphs_pacman_demo:${{ needs.compute-version.outputs.new_tag }}
ghcr.io/kit-mrt/arbitration_graphs_pacman_demo:${{ needs.compute-version.outputs.new_version }}
target: demo

- name: Build and push Pacman tutorial Docker image
uses: docker/build-push-action@v6
with:
build-args: |
VERSION=${{ needs.compute-version.outputs.new_tag }}
VERSION=${{ needs.compute-version.outputs.new_version }}
context: demo
file: demo/Dockerfile
push: true
tags: |
ghcr.io/kit-mrt/arbitration_graphs_pacman_tutorial:latest
ghcr.io/kit-mrt/arbitration_graphs_pacman_tutorial:${{ needs.compute-version.outputs.new_tag }}
ghcr.io/kit-mrt/arbitration_graphs_pacman_tutorial:${{ needs.compute-version.outputs.new_version }}
target: tutorial

0 comments on commit e7934b9

Please sign in to comment.