ci: use version-bump action for semver tagging
Some checks failed
Build & Push / build (push) Failing after 10m4s
Some checks failed
Build & Push / build (push) Failing after 10m4s
This commit is contained in:
@@ -16,9 +16,14 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Bump version
|
||||||
|
id: version
|
||||||
|
uses: https://git.sebse.de/sebse/actions/version-bump@main
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
|
||||||
- name: Set env vars
|
- name: Set env vars
|
||||||
run: |
|
run: |
|
||||||
echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
|
|
||||||
echo "IMAGE=git.sebse.de/${{ github.repository }}" >> $GITHUB_ENV
|
echo "IMAGE=git.sebse.de/${{ github.repository }}" >> $GITHUB_ENV
|
||||||
echo "IMAGE_MIGRATE=git.sebse.de/${{ github.repository }}-migrate" >> $GITHUB_ENV
|
echo "IMAGE_MIGRATE=git.sebse.de/${{ github.repository }}-migrate" >> $GITHUB_ENV
|
||||||
|
|
||||||
@@ -45,8 +50,8 @@ jobs:
|
|||||||
uses: https://git.sebse.de/sebse/actions/helm-package-push@main
|
uses: https://git.sebse.de/sebse/actions/helm-package-push@main
|
||||||
with:
|
with:
|
||||||
chart-path: ${{ env.CHART_PATH }}
|
chart-path: ${{ env.CHART_PATH }}
|
||||||
version: 0.0.0-${{ env.SHORT_SHA }}
|
version: ${{ steps.version.outputs.version }}
|
||||||
app-version: ${{ env.SHORT_SHA }}
|
app-version: ${{ steps.version.outputs.version }}
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
@@ -55,5 +60,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
app: factorio-signal-exporter
|
app: factorio-signal-exporter
|
||||||
profile: prod
|
profile: prod
|
||||||
version: 0.0.0-${{ env.SHORT_SHA }}
|
version: ${{ steps.version.outputs.version }}
|
||||||
ssh-key: ${{ secrets.HELMBOT_SSH_KEY }}
|
ssh-key: ${{ secrets.HELMBOT_SSH_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user