From 11e8cd20d038ba23c7936c30c2b34fa04e38d447 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Mon, 21 Jul 2025 23:53:30 +0200 Subject: [PATCH] revert --- .gitea/workflows/varnish-exporter.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/varnish-exporter.yml b/.gitea/workflows/varnish-exporter.yml index e37d787..bcb749b 100644 --- a/.gitea/workflows/varnish-exporter.yml +++ b/.gitea/workflows/varnish-exporter.yml @@ -59,7 +59,6 @@ jobs: - name: Set version to env vars run: | echo "VERSION=${{ needs.validate.outputs.version }}" >> $GITHUB_ENV - echo "version: ${{ env.VERSION }}" - name: Setup go uses: actions/setup-go@v4 @@ -85,7 +84,7 @@ jobs: - name: Prepare amd64 control file run: | echo "Package: varnish-exporter" > varnish-exporter-amd64/DEBIAN/control - echo "Version: ${{ env.VERSION }}" >> varnish-exporter-amd64/DEBIAN/control + echo "Version: $VERSION" >> varnish-exporter-amd64/DEBIAN/control echo "Maintainer: Ludovic Cartier " >> varnish-exporter-amd64/DEBIAN/control echo "Architecture: amd64" >> varnish-exporter-amd64/DEBIAN/control echo "Homepage: https://git.brainsys.io/packages/prometheus-exporters" >> varnish-exporter-amd64/DEBIAN/control @@ -93,7 +92,7 @@ jobs: - name: Build deb files run: | - dpkg -b varnish-exporter-amd64 bin/prometheus-varnish-exporter_${{ env.VERSION }}-1_amd64.deb + dpkg -b varnish-exporter-amd64 bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb # - name: Prepare apt repo upload # run: | @@ -101,7 +100,7 @@ jobs: - name: Release packages run: | - curl -s -u "${{ secrets.PACKAGE_TOKEN }}" --upload-file bin/prometheus-varnish-exporter_"${{ env.VERSION }}"-1_amd64.deb \ + curl -s -u "${{ secrets.PACKAGE_TOKEN }}" --upload-file bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb \ https://git.brainsys.io/api/packages/packages/debian/pool/stable/main/upload - name: Create release