Skip to content

Commit

Permalink
Remove abandoned action
Browse files Browse the repository at this point in the history
Fixes #57
  • Loading branch information
erikbosch committed Jun 14, 2024
1 parent e5814ad commit ecc996f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
9 changes: 6 additions & 3 deletions src/app/workflows/gen-desired-state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ jobs:
sudo chmod +x /usr/bin/velocitas
velocitas init -v
- id: get_version
uses: battila7/get-version-action@v2
- name: Extract version from tag
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- id: github-repository-name-case-adjusted
name: Prepare repository name in lower case for docker upload.
Expand All @@ -53,7 +56,7 @@ jobs:
- name: "Generate desired state for ${{ inputs.app_name }}"
working-directory: ${{github.workspace}}
env:
VAPP_VERSION: ${{ steps.get_version.outputs.version-without-v }}
VAPP_VERSION: ${{ env.VERSION }}
REGISTRY: "ghcr.io/${{steps.github-repository-name-case-adjusted.outputs.lowercase}}"
run: |
velocitas exec pantaris-integration generate-desired-state -s $(echo $REGISTRY/${{ inputs.app_name }}:$VAPP_VERSION | tr '[:upper:]' '[:lower:]')
Expand Down
11 changes: 7 additions & 4 deletions src/cpp-app/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- id: get_version
uses: battila7/get-version-action@v2
- name: Extract version from tag
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: echo "Using VehicleApp version ${{ steps.get_version.outputs.version-without-v }} from tag"
- run: echo "Using VehicleApp version ${{ env.VERSION }} from tag"

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down Expand Up @@ -103,7 +106,7 @@ jobs:
env:
VAPP_IMAGE: ${{ env.APP_NAME }}-multiarch-oci-archive/${{ env.APP_NAME }}-oci-multiarch.tar
VAPP_NAME: ${{ env.APP_NAME }}
VAPP_VERSION: ${{ steps.get_version.outputs.version-without-v }}
VAPP_VERSION: ${{ env.VERSION }}
REGISTRY: "ghcr.io/${{steps.github-repository-name-case-adjusted.outputs.lowercase}}"
run: |
tag=$(echo docker://$REGISTRY/$VAPP_NAME:$VAPP_VERSION | tr '[:upper:]' '[:lower:]')
Expand Down
11 changes: 7 additions & 4 deletions src/python-app/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- id: get_version
uses: battila7/get-version-action@v2
- name: Extract version from tag
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: echo "Using VehicleApp version ${{ steps.get_version.outputs.version-without-v }} from tag"
- run: echo "Using VehicleApp version ${{ env.VERSION }} from tag"

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down Expand Up @@ -98,7 +101,7 @@ jobs:
env:
VAPP_IMAGE: ${{ env.APP_NAME }}-multiarch-oci-archive/${{ env.APP_NAME }}-oci-multiarch.tar
VAPP_NAME: ${{ env.APP_NAME }}
VAPP_VERSION: ${{ steps.get_version.outputs.version-without-v }}
VAPP_VERSION: ${{ env.VERSION }}
REGISTRY: "ghcr.io/${{steps.github-repository-name-case-adjusted.outputs.lowercase}}"
run: |
tag=$(echo docker://$REGISTRY/$VAPP_NAME:$VAPP_VERSION | tr '[:upper:]' '[:lower:]')
Expand Down

0 comments on commit ecc996f

Please sign in to comment.